共用方式為


DynamicMethod.CallingConvention 屬性

定義

取得建立動態方法時所指定的呼叫慣例。

public:
 virtual property System::Reflection::CallingConventions CallingConvention { System::Reflection::CallingConventions get(); };
public override System.Reflection.CallingConventions CallingConvention { get; }
member this.CallingConvention : System.Reflection.CallingConventions
Public Overrides ReadOnly Property CallingConvention As CallingConventions

屬性值

CallingConventions 值的其中一個,表示該方法的呼叫慣例。

範例

下列程式代碼範例會顯示動態方法的呼叫慣例。 此程式代碼範例是提供給 類別之較大範例的 DynamicMethod 一部分。

// Display the calling convention of the dynamic method, set when the 
// dynamic method was created.
Console::WriteLine("\r\nCalling convention: {0}", hello->CallingConvention);
// Display the calling convention of the dynamic method, set when the
// dynamic method was created.
Console.WriteLine("\r\nCalling convention: {0}", hello.CallingConvention);
' Display the calling convention of the dynamic method, set when the 
' dynamic method was created.
Console.WriteLine(vbCrLf & "Calling convention: {0}", _ 
    hello.CallingConvention)

備註

目前,動態方法的呼叫慣例一律 Standard為 。

適用於