Share via


DynamicMethod.Name Vlastnost

Definice

Získá název dynamické metody.

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

Hodnota vlastnosti

Jednoduchý název metody.

Příklady

Následující příklad kódu zobrazí název dynamické metody. Tento příklad kódu je součástí většího příkladu DynamicMethod pro třídu .

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

Poznámky

Poznámka

Dynamické metody není nutné pojmenováovat.

Platí pro