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

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

Module.Assembly プロパティ

Module のこのインスタンス適切な Assembly取得します

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

使用例使用例

指定したモジュール内にある指定したアセンブリの完全名表示する例を次に示します

Imports System
Imports System.Reflection

Namespace ReflectionModule_Examples
    Class MyMainClass
        Shared Sub Main()
            Dim moduleArray() As [Module]

            moduleArray = [Assembly].GetExecutingAssembly().GetModules(False)

            ' In a simple project with only one module, the module at
 index
            ' 0 will be the module containing this class.
            Dim myModule As [Module] = moduleArray(0)

            Dim myAssembly As [Assembly] =
 myModule.Assembly
            Console.WriteLine("myModule.Assembly = {0}.",
 myAssembly.FullName)
        End Sub 'Main
    End Class 'MyMainClass
End Namespace 'ReflectionModule_Examples
using System;
using System.Reflection;

namespace ReflectionModule_Examples
{
    class MyMainClass
    {
        static void Main()
        {
            Module[] moduleArray;
            
            moduleArray = Assembly.GetExecutingAssembly().GetModules(false);
            
            // In a simple project with only one module, the module
 at index
            // 0 will be the module containing this class.
            Module myModule = moduleArray[0];

            Assembly myAssembly = myModule.Assembly;
            Console.WriteLine("myModule.Assembly = {0}.", myAssembly.FullName);
        }
    }
}
using namespace System;
using namespace System::Reflection;
int main()
{
   array<Module^>^moduleArray;
   moduleArray = Assembly::GetExecutingAssembly()->GetModules( false
 );
   
   // In a simple project with only one module, the module at index
   // 0 will be the module containing this class.
   Module^ myModule = moduleArray[ 0 ];
   Assembly^ myAssembly = myModule->Assembly;
   Console::WriteLine( "myModule.Assembly = {0}.", myAssembly->FullName
 );
}

package ReflectionModule_Examples ;
import System.*;
import System.Reflection.*;

class MyMainClass
{
    public static void main(String[]
 args)
    {
        Module moduleArray[];
        moduleArray = Assembly.GetExecutingAssembly().GetModules(false);

        // In a simple project with only one module, the module at index
        // 0 will be the module containing this class.
        Module myModule = (Module)moduleArray.get_Item(0);
        Assembly myAssembly = myModule.get_Assembly();
        Console.WriteLine("myModule.Assembly = {0}.", 
            myAssembly.get_FullName());
    } //main
} //MyMainClass   
プラットフォームプラットフォーム
バージョン情報バージョン情報
参照参照


このページでは「.NET Framework クラス ライブラリ リファレンス」からModule.Assembly プロパティを検索した結果を表示しています。
Weblioに収録されているすべての辞書からModule.Assembly プロパティを検索する場合は、下記のリンクをクリックしてください。
 全ての辞書からModule.Assembly プロパティ を検索

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

辞書ショートカット

すべての辞書の索引

「Module.Assembly プロパティ」の関連用語

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

   

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



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

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

©2025 GRAS Group, Inc.RSS