LogicalMethodInfo.MethodInfo Property
.NET Framework 3.0
Gets the attributes and metadata for a synchronous method.
Namespace: System.Web.Services.Protocols
Assembly: System.Web.Services (in system.web.services.dll)
Assembly: System.Web.Services (in system.web.services.dll)
/** @property */ public MethodInfo get_MethodInfo ()
public function get MethodInfo () : MethodInfo
Not applicable.
Property Value
A MethodInfo representing the attributes and metadata for a method. If IsAsync is true, then the value of this property is a null reference (Nothing in Visual Basic).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 = MyService.class.ToType();
MethodInfo myMethodInfo = myType.GetMethod("Add");
// Create a synchronous 'LogicalMethodInfo' instance.
LogicalMethodInfo myLogicalMethodInfo =
(LogicalMethodInfo)LogicalMethodInfo.Create(new MethodInfo[]
{ myMethodInfo }, LogicalMethodTypes.Sync).get_Item(0);
// Display the method for which the attributes are being displayed.
Console.WriteLine("\nDisplaying the attributes for the method : {0}\n",
myLogicalMethodInfo.get_MethodInfo());
Windows 98, Windows Server 2000 SP4, Windows CE, Windows Millennium Edition, Windows Mobile for Pocket PC, Windows Mobile for Smartphone, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition
The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.Community Additions
ADD
Show: