AssemblyName.ToString メソッド
アセンブリ: mscorlib (mscorlib.dll 内)

Dim instance As AssemblyName Dim returnValue As String returnValue = instance.ToString
アセンブリの完全名を表す文字列。アセンブリの完全名を判断できない場合は、クラス名を表します。


Imports System Imports System.Reflection Imports Microsoft.VisualBasic Public Class AssemblyName_GetAssemblyName Public Shared Sub Main() ' Replace the string "MyAssembly.exe" with the name of an assembly, ' including a path if necessary. If you do not have another assembly ' to use, you can use whatever name you give to this assembly. ' Dim myAssemblyName As AssemblyName = AssemblyName.GetAssemblyName("MyAssembly.exe") Console.WriteLine(vbCrLf & "Displaying assembly information:" & vbCrLf) Console.WriteLine(myAssemblyName.ToString()) End Sub 'Main End Class 'AssemblyName_GetAssemblyName
using System; using System.Reflection; public class AssemblyName_GetAssemblyName { public static void Main() { // Replace the string "MyAssembly.exe" with the name of an assembly, // including a path if necessary. If you do not have another assembly // to use, you can use whatever name you give to this assembly. // AssemblyName myAssemblyName = AssemblyName.GetAssemblyName("MyAssembly.exe"); Console.WriteLine("\nDisplaying assembly information:\n"); Console.WriteLine(myAssemblyName.ToString()); } }
#using <system.dll> using namespace System; using namespace System::Reflection; int main() { // Replace the string "MyAssembly.exe" with the name of an assembly, // including a path if necessary. If you do not have another assembly // to use, you can use whatever name you give to this assembly. // AssemblyName^ myAssemblyName = AssemblyName::GetAssemblyName( "MyAssembly.exe" ); Console::WriteLine( "\nDisplaying assembly information:\n" ); Console::WriteLine( myAssemblyName ); }
import System.*; import System.Reflection.*; import System.Text.RegularExpressions.*; public class AssemblyNameGetAssemblyName { public static void main(String[] args) { // Get the type of 'System.Object'. Type myType = Object.class.ToType(); // Get the path of 'System.dll'. String system = Regex.Replace(myType.get_Assembly().get_CodeBase(), "mscorlib.dll", "System.dll"); system = Regex.Replace(system, "file:///", ""); // Get the assembly information and display to the console. AssemblyName myAssemblyName = AssemblyName.GetAssemblyName(system); Console.WriteLine("\nDisplaying the assembly information of " + "'System.dll'\n"); Console.WriteLine(myAssemblyName.ToString()); } //main } //AssemblyNameGetAssemblyName

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 によってサポートされていないバージョンがあります。サポートされているバージョンについては、「システム要件」を参照してください。


Weblioに収録されているすべての辞書からAssemblyName.ToString メソッドを検索する場合は、下記のリンクをクリックしてください。

- AssemblyName.ToString メソッドのページへのリンク