This documentation is archived and is not being maintained.
LogicalMethodInfo::MethodInfo Property
Visual Studio 2008
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 nullptr.
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 );
Type* myType = __typeof(MyService);
MethodInfo* myMethodInfo = myType->GetMethod(S"Add");
// Create a synchronous 'LogicalMethodInfo' instance.
MethodInfo* temparray [] = {myMethodInfo};
LogicalMethodInfo* myLogicalMethodInfo =
(LogicalMethodInfo::Create(temparray,
LogicalMethodTypes::Sync))[0];
// Display the method for which the attributes are being displayed.
Console::WriteLine(S"\nDisplaying the attributes for the method : {0}\n",
myLogicalMethodInfo->MethodInfo);
Windows 7, Windows Vista, Windows XP SP2, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP Starter Edition, Windows Server 2008 R2, Windows Server 2008, Windows Server 2003, Windows Server 2000 SP4, Windows Millennium Edition, Windows 98, Windows CE, Windows Mobile for Smartphone, Windows Mobile for Pocket PC
The .NET Framework and .NET Compact Framework do not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.
Show: