LogicalMethodInfo.MethodInfo プロパティ
アセンブリ: System.Web.Services (system.web.services.dll 内)

メソッドの属性とメタデータを表す MethodInfo。IsAsync が true の場合、このプロパティの値は null 参照 (Visual Basic では Nothing) です。

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())
Type myType = typeof(MyService); MethodInfo myMethodInfo = myType.GetMethod("Add"); // Create a synchronous 'LogicalMethodInfo' instance. LogicalMethodInfo myLogicalMethodInfo = (LogicalMethodInfo.Create(new MethodInfo[] {myMethodInfo}, 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::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 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
開発プラットフォームの中には、.NET Framework によってサポートされていないバージョンがあります。サポートされているバージョンについては、「システム要件」を参照してください。


- LogicalMethodInfo.MethodInfo プロパティのページへのリンク