OAReferences.AddActiveX Method

Adds a COM component as a reference.

Namespace:  Microsoft.VisualStudio.Data.Schema.Project.Automation
Assembly:  Microsoft.VisualStudio.Data.Schema.Project (in Microsoft.VisualStudio.Data.Schema.Project.dll)

Syntax

'Declaration
Public Function AddActiveX ( _
    bstrTypeLibGuid As String, _
    lMajorVer As Integer, _
    lMinorVer As Integer, _
    lLocaleId As Integer, _
    bstrWrapperTool As String _
) As Reference
'Usage
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
abstract AddActiveX : 
        bstrTypeLibGuid:string * 
        lMajorVer:int * 
        lMinorVer:int * 
        lLocaleId:int * 
        bstrWrapperTool:string -> Reference 
override 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

Implements

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

.NET Framework Security

See Also

Reference

OAReferences Class

OAReferences Members

Microsoft.VisualStudio.Data.Schema.Project.Automation Namespace