OAReferences.AddActiveX Method

Adds a COM component as a reference.

Namespace:  Microsoft.VisualStudio.Package.Automation
Assembly:  MPF.Project.NonShipping (in MPF.Project.NonShipping.dll)

Syntax

'宣言
Public Function AddActiveX ( _
    bstrTypeLibGuid As String, _
    lMajorVer As Integer, _
    lMinorVer As Integer, _
    lLocaleId As Integer, _
    bstrWrapperTool As String _
) As Reference
'使用
Dim instance As OAReferences
Dim bstrTypeLibGuid As String
Dim lMajorVer As Integer
Dim lMinorVer As Integer
Dim lLocaleId As Integer
Dim bstrWrapperTool As String
Dim returnValue As Reference

returnValue = instance.AddActiveX(bstrTypeLibGuid, _
    lMajorVer, lMinorVer, lLocaleId, _
    bstrWrapperTool)
public Reference AddActiveX(
    string bstrTypeLibGuid,
    int lMajorVer,
    int lMinorVer,
    int lLocaleId,
    string bstrWrapperTool
)
public:
virtual Reference^ AddActiveX(
    String^ bstrTypeLibGuid, 
    int lMajorVer, 
    int lMinorVer, 
    int lLocaleId, 
    String^ bstrWrapperTool
) sealed
public final function AddActiveX(
    bstrTypeLibGuid : String, 
    lMajorVer : int, 
    lMinorVer : int, 
    lLocaleId : int, 
    bstrWrapperTool : String
) : Reference

Parameters

  • bstrTypeLibGuid
    Type: System.String

    The GUID of the COM component.

  • lMajorVer
    Type: System.Int32

    The major version of the COM component.

  • lMinorVer
    Type: System.Int32

    The minor version of the COM component.

  • lLocaleId
    Type: System.Int32

    The locale ID of the COM component.

  • bstrWrapperTool
    Type: System.String

    The name of the wrapper tool. Not used.

Return Value

Type: VSLangProj.Reference

The added Reference.

Implements

References.AddActiveX(String, Int32, Int32, Int32, String)

Permissions

See Also

Reference

OAReferences Class

OAReferences Members

Microsoft.VisualStudio.Package.Automation Namespace