LogicalMethodInfo.MethodInfo Property
.NET Framework (current version)
Gets the attributes and metadata for a synchronous method.
Assembly: System.Web.Services (in System.Web.Services.dll)
Property Value
Type: System.Reflection.MethodInfoA 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
Available since 1.1
Show: