_Assembly.FullName プロパティ
アセンブリ: mscorlib (mscorlib.dll 内)
構文
解説
プラットフォーム
Windows 98, Windows 2000 SP4, Windows Millennium Edition, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition
開発プラットフォームの中には、.NET Framework によってサポートされていないバージョンがあります。サポートされているバージョンについては、「システム要件」を参照してください。
参照
Assembly.FullName プロパティ
アセンブリ: mscorlib (mscorlib.dll 内)
構文
解説
アセンブリの表示名の書式については、AssemblyName のトピックを参照してください。
メモ |
---|
表示名を解析するために独自のコードを作成することはお勧めしません。代わりに、表示名を AssemblyName コンストラクタに渡します。このコンストラクタは、表示名を解析し、新しい AssemblyName の適切なフィールドを設定します。 |
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()) ' Write the display name of assembly including base name and version. Console.WriteLine(("FullName=" + SampleAssembly.FullName)) End Sub 'Snippet2
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()); // Write the display name of assembly including base name and version. Console.WriteLine("FullName=" + SampleAssembly.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() ); // Write the display name of assembly including base name and version. Console::WriteLine( "FullName= {0}", SampleAssembly->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()); // Write the display name of assembly including base name and version. Console.WriteLine("FullName=" + SampleAssembly.FullName);
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 によってサポートされていないバージョンがあります。サポートされているバージョンについては、「システム要件」を参照してください。
参照
- _Assembly.FullName プロパティのページへのリンク