DynamicMethod.Name Tulajdonság
Definíció
Fontos
Egyes információk olyan, kiadás előtti termékekre vonatkoznak, amelyek a kiadásig még jelentősen módosulhatnak. A Microsoft nem vállal kifejezett vagy törvényi garanciát az itt megjelenő információért.
Lekéri a dinamikus metódus nevét.
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
Tulajdonság értéke
A metódus egyszerű neve.
Példák
Az alábbi példakód egy dinamikus metódus nevét jeleníti meg. Ez a példakód egy nagyobb, az DynamicMethod osztályhoz tartozó példa része.
// 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)
Megjegyzések
Note
Nem szükséges dinamikus metódusokat nevezni.