LogicalMethodInfo.MethodInfo プロパティとは? わかりやすく解説

Weblio 辞書 > コンピュータ > .NET Framework クラス ライブラリ リファレンス > LogicalMethodInfo.MethodInfo プロパティの意味・解説 

LogicalMethodInfo.MethodInfo プロパティ

同期メソッド属性メタデータ取得します

名前空間: System.Web.Services.Protocols
アセンブリ: System.Web.Services (system.web.services.dll 内)
構文構文

Public ReadOnly Property
 MethodInfo As MethodInfo
Dim instance As LogicalMethodInfo
Dim value As MethodInfo

value = instance.MethodInfo
public MethodInfo MethodInfo { get; }
public:
property MethodInfo^ MethodInfo {
    MethodInfo^ get ();
}
/** @property */
public MethodInfo get_MethodInfo ()
public function get MethodInfo
 () : MethodInfo

プロパティ
メソッド属性メタデータを表す 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());
プラットフォームプラットフォーム
バージョン情報バージョン情報
参照参照
関連項目
LogicalMethodInfo クラス
LogicalMethodInfo メンバ
System.Web.Services.Protocols 名前空間
MethodInfo
LogicalMethodInfo.BeginMethodInfo プロパティ
LogicalMethodInfo.EndMethodInfo プロパティ



英和和英テキスト翻訳>> Weblio翻訳
英語⇒日本語日本語⇒英語
  

辞書ショートカット

すべての辞書の索引

「LogicalMethodInfo.MethodInfo プロパティ」の関連用語

LogicalMethodInfo.MethodInfo プロパティのお隣キーワード
検索ランキング

   

英語⇒日本語
日本語⇒英語
   



LogicalMethodInfo.MethodInfo プロパティのページの著作権
Weblio 辞書 情報提供元は 参加元一覧 にて確認できます。

   
日本マイクロソフト株式会社日本マイクロソフト株式会社
© 2024 Microsoft.All rights reserved.

©2024 GRAS Group, Inc.RSS