VCReferences.CanAddActiveXReference Method
Returns a value indicating whether to add the given ActiveX (COM) reference.
Namespace: Microsoft.VisualStudio.VCProjectEngine
Assembly: Microsoft.VisualStudio.VCProjectEngine (in Microsoft.VisualStudio.VCProjectEngine.dll)
Syntax
'Declaration
Function CanAddActiveXReference ( _
typeLibGuid As String, _
majorVersion As Integer, _
minorVersion As Integer, _
localeID As Integer, _
wrapper As String _
) As Boolean
bool CanAddActiveXReference(
string typeLibGuid,
int majorVersion,
int minorVersion,
int localeID,
string wrapper
)
bool CanAddActiveXReference(
[InAttribute] String^ typeLibGuid,
[InAttribute] int majorVersion,
[InAttribute] int minorVersion,
[InAttribute] int localeID,
[InAttribute] String^ wrapper
)
abstract CanAddActiveXReference :
typeLibGuid:string *
majorVersion:int *
minorVersion:int *
localeID:int *
wrapper:string -> bool
function CanAddActiveXReference(
typeLibGuid : String,
majorVersion : int,
minorVersion : int,
localeID : int,
wrapper : String
) : boolean
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.Boolean
true if it is okay to add the given ActiveX reference; otherwise, false.
.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.