LogicalMethodInfo.MethodInfo Property

 

Gets the attributes and metadata for a synchronous method.

Namespace:   System.Web.Services.Protocols
Assembly:  System.Web.Services (in System.Web.Services.dll)

Public ReadOnly Property MethodInfo As MethodInfo

Property Value

Type: System.Reflection.MethodInfo

A MethodInfo representing the attributes and metadata for a method. If IsAsync is true, then the value of this property is null.

Dim myType As Type = GetType(MyService)
Dim myMethodInfo As MethodInfo = myType.GetMethod("Add")
' Create a synchronous 'LogicalMethodInfo' instance.
Dim myLogicalMethodInfo As LogicalMethodInfo = _
           LogicalMethodInfo.Create(New MethodInfo() {myMethodInfo}, LogicalMethodTypes.Sync)(0)
' Display the method for which the attributes are being displayed.
Console.WriteLine(ControlChars.NewLine + "Displaying the attributes for the method : {0}" + _
           ControlChars.NewLine, myLogicalMethodInfo.MethodInfo.ToString())

.NET Framework
Available since 1.1
Return to top
Show: