Assembly.GetExecutingAssembly メソッドとは何? わかりやすく解説 Weblio辞書

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

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

Assembly.GetExecutingAssembly メソッド

現在実行中のコード格納しているアセンブリ取得します

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

Public Shared Function GetExecutingAssembly
 As Assembly
public static Assembly GetExecutingAssembly
 ()
public:
static Assembly^ GetExecutingAssembly ()
public static Assembly GetExecutingAssembly
 ()
public static function GetExecutingAssembly
 () : Assembly

戻り値
現在実行中のコード格納しているアセンブリを表す Assembly

解説解説
使用例使用例

現在実行しているコードアセンブリ取得する例を次に示します

    Dim SampleAssembly As [Assembly]
    ' Instantiate a target object.
    Dim Integer1 As New
 Int32()
    Dim Type1 As Type
    ' Set the Type instance to the target class type.
    Type1 = Integer1.GetType()
    ' Instantiate an Assembly class to the assembly housing the Integer
 type.  
    SampleAssembly = [Assembly].GetAssembly(Integer1.GetType())
    ' Display the name of the assembly currently executing
    Console.WriteLine(("GetExecutingAssembly=" + [Assembly].GetExecutingAssembly().FullName))
End Sub 'Snippet5
Assembly SampleAssembly;
// Instantiate a target object.
Int32 Integer1 = new Int32();
Type Type1;
// Set the Type instance to the target class type.
Type1 = Integer1.GetType();
// Instantiate an Assembly class to the assembly housing the Integer
 type.  
SampleAssembly = Assembly.GetAssembly(Integer1.GetType());
// Display the name of the assembly currently executing
Console.WriteLine("GetExecutingAssembly=" + Assembly.GetExecutingAssembly().FullName);
Assembly^ SampleAssembly;
// Instantiate a target object.
Int32 Integer1(0);
Type^ Type1;
// Set the Type instance to the target class type.
Type1 = Integer1.GetType();
// Instantiate an Assembly class to the assembly housing the Integer
 type.  
SampleAssembly = Assembly::GetAssembly( Integer1.GetType() );
// Display the name of the assembly currently executing
Console::WriteLine( "GetExecutingAssembly= {0}", Assembly::GetExecutingAssembly()->FullName
 );
var SampleAssembly : Assembly;
// Instantiate a target object.
var Integer1 : Int32 = 0;
var Type1 : Type;
// Set the Type instance to the target class type.
Type1 = Integer1.GetType();
// Instantiate an Assembly class to the assembly housing the Integer
 type.  
SampleAssembly = Assembly.GetAssembly(Integer1.GetType());
// Display the name of the assembly currently executing
Console.WriteLine("GetExecutingAssembly=" + Assembly.GetExecutingAssembly().FullName);
プラットフォームプラットフォーム
バージョン情報バージョン情報
参照参照



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

辞書ショートカット

すべての辞書の索引

「Assembly.GetExecutingAssembly メソッド」の関連用語

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

   

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



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

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

©2024 GRAS Group, Inc.RSS