DynamicMethod.CallingConvention Propriété

Définition

Obtient la convention d’appel spécifiée lors de la création de la méthode dynamique.

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

Valeur de propriété

Une des CallingConventions valeurs qui indique la convention d’appel de la méthode.

Exemples

L’exemple de code suivant affiche la convention d’appel d’une méthode dynamique. Cet exemple de code fait partie d’un exemple plus grand fourni pour la 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(vbCrLf & "Calling convention: {0}", _ 
    hello.CallingConvention)

Remarques

Actuellement, la convention d’appel pour une méthode dynamique est toujours Standard.

S’applique à