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
声明
Function CanAddActiveXReference ( _
typeLibGuid As String, _
majorVersion As Integer, _
minorVersion As Integer, _
localeID As Integer, _
wrapper As String _
) As Boolean
用法
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 Boolean
returnValue = instance.CanAddActiveXReference(typeLibGuid, _
majorVersion, minorVersion, localeID, _
wrapper)
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
)
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.
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.