_MethodBase.GetMethodImplementationFlags メソッドとは? わかりやすく解説

Weblio 辞書 > コンピュータ > .NET Framework クラス ライブラリ リファレンス > _MethodBase.GetMethodImplementationFlags メソッドの意味・解説 

_MethodBase.GetMethodImplementationFlags メソッド

メモ : このメソッドは、.NET Framework version 2.0新しく追加されたものです。

COM オブジェクトに、GetMethodImplementationFlags メソッドへのバージョン依存しないアクセス用意されています。

このメソッドは、CLS準拠していません。  

名前空間: System.Runtime.InteropServices
アセンブリ: mscorlib (mscorlib.dll 内)
構文構文

Function GetMethodImplementationFlags As MethodImplAttributes
Dim instance As _MethodBase
Dim returnValue As MethodImplAttributes

returnValue = instance.GetMethodImplementationFlags
MethodImplAttributes GetMethodImplementationFlags ()
MethodImplAttributes GetMethodImplementationFlags ()
MethodImplAttributes GetMethodImplementationFlags ()
function GetMethodImplementationFlags () : MethodImplAttributes

戻り値
MethodImplAttributes 値の 1 つ

解説解説

このメソッドは、アンマネージ コードからマネージ クラスアクセスするためのメソッドであるため、マネージ コードからは呼び出さないください

GetMethodImplementationFlags メンバMethodImplAttributes フラグ返します

プラットフォームプラットフォーム
バージョン情報バージョン情報
参照参照
関連項目
_MethodBase インターフェイス
_MethodBase メンバ
System.Runtime.InteropServices 名前空間

MethodBase.GetMethodImplementationFlags メソッド

派生クラスによってオーバーライドされた場合に、MethodImplAttributes フラグ返します

名前空間: System.Reflection
アセンブリ: mscorlib (mscorlib.dll 内)
構文構文

Public MustOverride Function
 GetMethodImplementationFlags As MethodImplAttributes
Dim instance As MethodBase
Dim returnValue As MethodImplAttributes

returnValue = instance.GetMethodImplementationFlags
public abstract MethodImplAttributes GetMethodImplementationFlags
 ()
public:
virtual MethodImplAttributes GetMethodImplementationFlags () abstract
public abstract MethodImplAttributes GetMethodImplementationFlags
 ()
public abstract function GetMethodImplementationFlags
 () : MethodImplAttributes

戻り値
MethodImplAttributes フラグ

使用例使用例
' Define a constructor of the dynamic class.
Dim myConstructorBuilder As ConstructorBuilder
 = _ 
    myTypeBuilder.DefineConstructor(MethodAttributes.Public, CallingConventions.Standard,
 _ 
                                    myConstructorArgs)
' Get a reference to the module that contains this constructor.
Dim myModule As [Module] = myConstructorBuilder.GetModule()
Console.WriteLine("Module Name : " + myModule.Name)
' Get the 'MethodToken' that represents the token for this constructor.
Dim myMethodToken As MethodToken = myConstructorBuilder.GetToken()
Console.WriteLine("Constructor Token is : " + myMethodToken.Token.ToString())
' Get the method implementation flags for this constructor.
Dim myMethodImplAttributes As MethodImplAttributes
 = _
    myConstructorBuilder.GetMethodImplementationFlags()
Console.WriteLine("MethodImplAttributes : " + myMethodImplAttributes.ToString())
// Define a constructor of the dynamic class.
ConstructorBuilder myConstructorBuilder = myTypeBuilder.DefineConstructor(
   MethodAttributes.Public, CallingConventions.Standard, myConstructorArgs);
// Get a reference to the module that contains this constructor.
Module myModule = myConstructorBuilder.GetModule();
Console.WriteLine("Module Name : " + myModule.Name);
// Get the 'MethodToken' that represents the token for this constructor.
MethodToken myMethodToken = myConstructorBuilder.GetToken();
Console.WriteLine("Constructor Token is : " + myMethodToken.Token);
// Get the method implementation flags for this constructor.
MethodImplAttributes myMethodImplAttributes = myConstructorBuilder.GetMethodImplementationFlags();
Console.WriteLine("MethodImplAttributes : "  + myMethodImplAttributes);
// Define a constructor of the dynamic class.
ConstructorBuilder^ myConstructorBuilder = myTypeBuilder->DefineConstructor(
   MethodAttributes::Public, CallingConventions::Standard, myConstructorArgs );
// Get a reference to the module that contains this constructor.
Module^ myModule = myConstructorBuilder->GetModule();
Console::WriteLine( "Module Name : {0}", myModule->Name );
// Get the 'MethodToken' that represents the token for this constructor.
MethodToken myMethodToken = myConstructorBuilder->GetToken();
Console::WriteLine( "Constructor Token is : {0}", myMethodToken.Token );
// Get the method implementation flags for this constructor.
MethodImplAttributes myMethodImplAttributes = myConstructorBuilder->GetMethodImplementationFlags();
Console::WriteLine( "MethodImplAttributes : {0}", myMethodImplAttributes
 );
// Define a constructor of the dynamic class.
ConstructorBuilder myConstructorBuilder =
    myTypeBuilder.DefineConstructor(MethodAttributes.Public,
    CallingConventions.Standard, myConstructorArgs);

// Get a reference to the module that contains this constructor.
Module myModule = myConstructorBuilder.GetModule();
Console.WriteLine("Module Name : " + myModule.get_Name());

// Get the 'MethodToken' that represents the token for this constructor.
MethodToken myMethodToken = myConstructorBuilder.GetToken();
Console.WriteLine("Constructor Token is : " + myMethodToken.get_Token());

// Get the method implementation flags for this constructor.
MethodImplAttributes myMethodImplAttributes =
    myConstructorBuilder.GetMethodImplementationFlags();
Console.WriteLine("MethodImplAttributes : " + myMethodImplAttributes);
.NET Framework のセキュリティ.NET Frameworkセキュリティ
プラットフォームプラットフォーム
バージョン情報バージョン情報
参照参照
関連項目
MethodBase クラス
MethodBase メンバ
System.Reflection 名前空間
MethodImplAttributes



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

辞書ショートカット

すべての辞書の索引

「_MethodBase.GetMethodImplementationFlags メソッド」の関連用語

_MethodBase.GetMethodImplementationFlags メソッドのお隣キーワード
検索ランキング

   

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



_MethodBase.GetMethodImplementationFlags メソッドのページの著作権
Weblio 辞書 情報提供元は 参加元一覧 にて確認できます。

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

©2024 GRAS Group, Inc.RSS