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

Public Shared Sub GetTypeLibVersionForAssembly ( _ inputAssembly As Assembly, _ <OutAttribute> ByRef majorVersion As Integer, _ <OutAttribute> ByRef minorVersion As Integer _ )
Dim inputAssembly As Assembly Dim majorVersion As Integer Dim minorVersion As Integer Marshal.GetTypeLibVersionForAssembly(inputAssembly, majorVersion, minorVersion)
public static void GetTypeLibVersionForAssembly ( Assembly inputAssembly, out int majorVersion, out int minorVersion )
public: static void GetTypeLibVersionForAssembly ( Assembly^ inputAssembly, [OutAttribute] int% majorVersion, [OutAttribute] int% minorVersion )
public static void GetTypeLibVersionForAssembly ( Assembly inputAssembly, /** @attribute OutAttribute() */ /** @ref */ int majorVersion, /** @attribute OutAttribute() */ /** @ref */ int minorVersion )
- majorVersion

CallerResolvedReferences 値を指定した TypeLibExporterFlags を使用してアセンブリをエクスポートする前に、このメソッドを使用してアセンブリからタイプ ライブラリのバージョンを取得できます。
エクスポートするアセンブリに TypeLibVersionAttribute 属性を適用して、生成されるタイプ ライブラリのバージョン番号を明示的に制御しない場合、タイプ ライブラリのバージョン番号はアセンブリと同じ番号になります。

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


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

- Marshal.GetTypeLibVersionForAssembly メソッドのページへのリンク