DynamicMethod.Name Właściwość

Definicja

Pobiera nazwę metody dynamicznej.

public:
 virtual property System::String ^ Name { System::String ^ get(); };
public override string Name { get; }
member this.Name : string
Public Overrides ReadOnly Property Name As String

Wartość właściwości

String

Prosta nazwa metody.

Przykłady

Poniższy przykład kodu przedstawia nazwę metody dynamicznej. Ten przykład kodu jest częścią większego przykładu podanego DynamicMethod dla klasy.

// Display the name specified when the dynamic method was created.
// Note that the name can be blank.
Console::WriteLine("\r\nName: {0}", hello->Name);
// Display the name specified when the dynamic method was created.
// Note that the name can be blank.
Console.WriteLine("\r\nName: {0}", hello.Name);
' Display the name specified when the dynamic method was created.
' Note that the name can be blank.
Console.WriteLine(vbCrLf & "Name: {0}", hello.Name)

Uwagi

Uwaga

Nie trzeba nazywać metod dynamicznych.

Dotyczy