Share via


VCReferences.AddActiveXReference Method

Adds an ActiveX (COM) reference to the project.

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

Syntax

'Declaration
Function AddActiveXReference ( _
    typeLibGuid As String, _
    majorVersion As Integer, _
    minorVersion As Integer, _
    localeID As Integer, _
    wrapper As String _
) As Object
Object AddActiveXReference(
    string typeLibGuid,
    int majorVersion,
    int minorVersion,
    int localeID,
    string wrapper
)
Object^ AddActiveXReference(
    [InAttribute] String^ typeLibGuid, 
    [InAttribute] int majorVersion, 
    [InAttribute] int minorVersion, 
    [InAttribute] int localeID, 
    [InAttribute] String^ wrapper
)
abstract AddActiveXReference : 
        typeLibGuid:string * 
        majorVersion:int * 
        minorVersion:int * 
        localeID:int * 
        wrapper:string -> Object
function AddActiveXReference(
    typeLibGuid : String, 
    majorVersion : int, 
    minorVersion : int, 
    localeID : int, 
    wrapper : String
) : Object

Parameters

  • typeLibGuid
    Type: String

    A string representing the type library GUID.

  • majorVersion
    Type: Int32

    An integer representing the major version number.

  • minorVersion
    Type: Int32

    An integer representing the minor version number.

  • localeID
    Type: Int32

    An integer representing the locale ID.

  • wrapper
    Type: String

    A string representing the wrapper name. Can be blank.

Return Value

Type: Object
An object representing the project reference.

Remarks

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."

.NET Framework Security

See Also

Reference

VCReferences Interface

Microsoft.VisualStudio.VCProjectEngine Namespace