間接的な呼び出しに対してマネージ呼び出し規約を指定して、MSIL (Microsoft Intermediate Language) ストリームに Calli 命令を書き込みます。
Overloads Public Sub EmitCalli( _
ByVal opcode As OpCode, _ ByVal callingConvention As CallingConventions, _ ByVal returnType As Type, _ ByVal parameterTypes() As Type, _ ByVal optionalParameterTypes() As Type _)
[C#]
public void EmitCalli(OpCodeopcode,CallingConventionscallingConvention,TypereturnType,Type[] parameterTypes,Type[] optionalParameterTypes);
[C++]
public: void EmitCalli(OpCodeopcode,CallingConventionscallingConvention,Type* returnType,Type* parameterTypes[],Type* optionalParameterTypes[]);
[JScript]
public function EmitCalli(
opcode : OpCode,callingConvention : CallingConventions,returnType : Type,parameterTypes : Type[],optionalParameterTypes : Type[]);
パラメータ
- opcode
ストリームに書き込む MSIL 命令。 - callingConvention
使用するマネージ呼び出し規約。 - returnType
結果の Type 。 - parameterTypes
命令に必要な引数の型。 - optionalParameterTypes
vararg 呼び出しの省略可能な引数の型。
解説
Calli 命令をストリームに書き込むには、 EmitCalli を使用します。 Emit は使用しないでください。
必要条件
プラットフォーム: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 ファミリ
参照
ILGenerator クラス | ILGenerator メンバ | System.Reflection.Emit 名前空間 | ILGenerator.EmitCalli オーバーロードの一覧