Share via


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: String

    A string representing the type library GUID.

  • majorVersion
    Type: Int32

    An integer representing the major version number.

  • minorVersion
    Type: Int32

    An integer representing the minor version number.

  • localeID
    Type: Int32

    An integer representing the locale ID.

  • wrapper
    Type: String

    A string representing the wrapper name. Can be blank.

Return Value

Type: Boolean
true if it is okay to add the given ActiveX reference; otherwise, false.

.NET Framework Security

See Also

Reference

VCReferences Interface

Microsoft.VisualStudio.VCProjectEngine Namespace