VCReferences.AddActiveXReference Method (String, Int32, Int32, Int32, String)

 

Adds an ActiveX (COM) reference to the project.

Namespace:   Microsoft.VisualStudio.VCProjectEngine
Assembly:  Microsoft.VisualStudio.VCProjectEngine (in Microsoft.VisualStudio.VCProjectEngine.dll)

object AddActiveXReference(
	string typeLibGuid,
	int majorVersion,
	int minorVersion,
	int localeID,
	string wrapper
)

Parameters

typeLibGuid
Type: System.String

A string representing the type library GUID.

majorVersion
Type: System.Int32

An integer representing the major version number.

minorVersion
Type: System.Int32

An integer representing the minor version number.

localeID
Type: System.Int32

An integer representing the locale ID.

wrapper
Type: System.String

A string representing the wrapper name. Can be blank.

Return Value

Type: System.Object

An object representing the project reference.

One way to obtain the parameters for this method is to add the desired reference to your project, save the project, and then examine its .vcproj file. The parameters are listed under "ActiveXReference."

Return to top
Show: