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::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
Available since 1.1
Show: