TypeLibConverter.GetPrimaryInteropAssembly Method (Guid, Int32, Int32, Int32, String, String)

 

Gets the name and code base of a primary interop assembly for a specified type library.

Namespace:   System.Runtime.InteropServices
Assembly:  mscorlib (in mscorlib.dll)

public bool GetPrimaryInteropAssembly(
	Guid g,
	int major,
	int minor,
	int lcid,
	out string asmName,
	out string asmCodeBase
)

Parameters

g
Type: System.Guid

The GUID of the type library.

major
Type: System.Int32

The major version number of the type library.

minor
Type: System.Int32

The minor version number of the type library.

lcid
Type: System.Int32

The LCID of the type library.

asmName
Type: System.String

On successful return, the name of the primary interop assembly associated with g.

asmCodeBase
Type: System.String

On successful return, the code base of the primary interop assembly associated with g.

Return Value

Type: System.Boolean

true if the primary interop assembly was found in the registry; otherwise false.

.NET Framework
Available since 1.1
Return to top
Show: