DynamicMethod.CallingConvention 屬性
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
取得建立動態方法時所指定的呼叫慣例。
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為 。