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:
property MethodInfo^ MethodInfo {
	MethodInfo^ get();
}

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.

Type^ myType = MyService::typeid;
MethodInfo^ myMethodInfo = myType->GetMethod( "Add" );

// Create a synchronous 'LogicalMethodInfo' instance.
array<MethodInfo^>^temparray = {myMethodInfo};
LogicalMethodInfo^ myLogicalMethodInfo = (LogicalMethodInfo::Create( temparray, LogicalMethodTypes::Sync ))[ 0 ];

// Display the method for which the attributes are being displayed.
Console::WriteLine( "\nDisplaying the attributes for the method : {0}\n", myLogicalMethodInfo->MethodInfo );

.NET Framework
Available since 1.1
Return to top
Show: