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.StringThe GUID of the COM component.
lMajorVer
Type: System.Int32The major version of the COM component.
lMinorVer
Type: System.Int32The minor version of the COM component.
lLocaleId
Type: System.Int32The locale ID of the COM component.
bstrWrapperTool
Type: System.StringThe name of the wrapper tool. Not used.
Return Value
Type: VSLangProj.Reference
The added Reference.
Implements
References.AddActiveX(String, Int32, Int32, Int32, String)
Permissions
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.