This documentation is archived and is not being maintained.
DynamicMethod. Name Property
[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation . ]
Gets the name of the dynamic method.
Namespace:
System.Reflection.Emit
Assembly:
mscorlib (in mscorlib.dll)
'Declaration
Public Overrides ReadOnly Property Name As String
Note: It is not necessary to name dynamic methods.
The following code example displays the name of a dynamic method. This code example is part of a larger example provided for the DynamicMethod class.
' Display the name specified when the dynamic method was created.
' Note that the name can be blank.
outputBlock.Text += String .Format("Name: {0}" , hello.Name) & vbLf
Windows Phone OS Supported in: 8.1, 8.0, 7.1