Adds an ActiveX (COM) reference to the project.
Namespace: Microsoft.VisualStudio.VCProjectEngine
Assembly: Microsoft.VisualStudio.VCProjectEngine (in Microsoft.VisualStudio.VCProjectEngine.dll)
Syntax
声明
Function AddActiveXReference ( _
typeLibGuid As String, _
majorVersion As Integer, _
minorVersion As Integer, _
localeID As Integer, _
wrapper As String _
) As Object
用法
Dim instance As VCReferences
Dim typeLibGuid As String
Dim majorVersion As Integer
Dim minorVersion As Integer
Dim localeID As Integer
Dim wrapper As String
Dim returnValue As Object
returnValue = instance.AddActiveXReference(typeLibGuid, _
majorVersion, minorVersion, localeID, _
wrapper)
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
)
function AddActiveXReference(
typeLibGuid : String,
majorVersion : int,
minorVersion : int,
localeID : int,
wrapper : String
) : Object
Parameters
typeLibGuid
Type: System.StringA string representing the type library GUID.
majorVersion
Type: System.Int32An integer representing the major version number.
minorVersion
Type: System.Int32An integer representing the minor version number.
localeID
Type: System.Int32An integer representing the locale ID.
wrapper
Type: System.StringA string representing the wrapper name. Can be blank.
Return Value
Type: System.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."
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.