DynamicMethod.Name プロパティ

定義

動的メソッドの名前を取得します。

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

プロパティ値

メソッドの単純な名前。

次のコード例では、動的メソッドの名前を表示します。 このコード例は、DynamicMethod クラスのために提供されている大規模な例の一部です。

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

注釈

注意

動的メソッドに名前を付ける必要はありません。

適用対象