VCReferences.AddActiveXReferenceEx Method
Adds an ActiveX (COM) reference to the project.
Namespace: Microsoft.VisualStudio.VCProjectEngine
Assembly: Microsoft.VisualStudio.VCProjectEngine (in Microsoft.VisualStudio.VCProjectEngine.dll)
Syntax
'Dichiarazione
Function AddActiveXReferenceEx ( _
typeLibGuid As String, _
majorVersion As Integer, _
minorVersion As Integer, _
localeID As Integer, _
wrapper As String, _
<OutAttribute> ByRef created As Boolean _
) As Object
Object AddActiveXReferenceEx(
string typeLibGuid,
int majorVersion,
int minorVersion,
int localeID,
string wrapper,
out bool created
)
Object^ AddActiveXReferenceEx(
[InAttribute] String^ typeLibGuid,
[InAttribute] int majorVersion,
[InAttribute] int minorVersion,
[InAttribute] int localeID,
[InAttribute] String^ wrapper,
[OutAttribute] bool% created
)
abstract AddActiveXReferenceEx :
typeLibGuid:string *
majorVersion:int *
minorVersion:int *
localeID:int *
wrapper:string *
created:bool byref -> Object
function AddActiveXReferenceEx(
typeLibGuid : String,
majorVersion : int,
minorVersion : int,
localeID : int,
wrapper : String,
created : boolean
) : Object
Parameters
- typeLibGuid
Type: System.String
A string representing the type library GUID.
- majorVersion
Type: System.Int32
An integer representing the major version number.
- minorVersion
Type: System.Int32
An integer representing the minor version number.
- localeID
Type: System.Int32
An integer representing the locale ID.
- wrapper
Type: System.String
A string representing the wrapper name. Can be blank.
- created
Type: System.Boolean%
When this method returns, contains true if the reference is created; otherwise, false. This parameter is passed uninitialized.
Return Value
Type: System.Object
An object representing the project reference.
Remarks
This method is the same as the AddActiveXReference method, but includes the created parameter to support interoperability.
.NET Framework Security
- 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.