Marshal.NumParamBytes(MethodInfo) メソッド

定義

指定したメソッドのパラメーターを保持するために必要なアンマネージ メモリ内のバイト数を計算します。

public:
 static int NumParamBytes(System::Reflection::MethodInfo ^ m);
public static int NumParamBytes(System.Reflection.MethodInfo m);
[System.Security.SecurityCritical]
public static int NumParamBytes(System.Reflection.MethodInfo m);
static member NumParamBytes : System.Reflection.MethodInfo -> int
[<System.Security.SecurityCritical>]
static member NumParamBytes : System.Reflection.MethodInfo -> int
Public Shared Function NumParamBytes (m As MethodInfo) As Integer

パラメーター

m
MethodInfo

チェックするメソッド。

返品

アンマネージ メモリ内のメソッド パラメーターを表すために必要なバイト数。

属性

例外

m パラメーターはnull

m パラメーターはMethodInfo オブジェクトではありません。

注釈

NumParamBytes メソッドは、アンマネージ メモリ内のメソッド シグネチャのパラメーターを表すために必要なスタック サイズ (バイト単位) を返します。

このメソッドの戻り値はプラットフォームに依存します。 たとえば、1 つの整数パラメーターを持つシグネチャは、32 ビット プラットフォームでは 4、64 ビット プラットフォームでは値 8 を返します。

適用対象