DynamicMethod.CallingConvention Propriedade

Definição

Obtém a convenção de chamada especificada quando o método dinâmico foi criado.

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

Valor da propriedade

Um dos CallingConventions valores que indica a convenção de chamada do método .

Exemplos

O exemplo de código a seguir exibe a convenção de chamada de um método dinâmico. Este exemplo de código faz parte de um exemplo maior fornecido para a DynamicMethod classe .

// 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)

Comentários

Atualmente, a convenção de chamada para um método dinâmico é sempre Standard.

Aplica-se a