Compartilhar via


VCReferences.CanAddActiveXReference Method

Definition

Returns a value indicating whether to add the given ActiveX (COM) reference.

public:
 bool CanAddActiveXReference(System::String ^ typeLibGuid, int majorVersion, int minorVersion, int localeID, System::String ^ wrapper);
public:
 bool CanAddActiveXReference(Platform::String ^ typeLibGuid, int majorVersion, int minorVersion, int localeID, Platform::String ^ wrapper);
bool CanAddActiveXReference(std::wstring const & typeLibGuid, int majorVersion, int minorVersion, int localeID, std::wstring const & wrapper);
[System.Runtime.InteropServices.DispId(904)]
public bool CanAddActiveXReference (string typeLibGuid, int majorVersion, int minorVersion, int localeID, string wrapper);
[<System.Runtime.InteropServices.DispId(904)>]
abstract member CanAddActiveXReference : string * int * int * int * string -> bool
Public Function CanAddActiveXReference (typeLibGuid As String, majorVersion As Integer, minorVersion As Integer, localeID As Integer, wrapper As String) As Boolean

Parameters

typeLibGuid
String

A string representing the type library GUID.

majorVersion
Int32

An integer representing the major version number.

minorVersion
Int32

An integer representing the minor version number.

localeID
Int32

An integer representing the locale ID.

wrapper
String

A string representing the wrapper name. Can be blank.

Returns

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

Attributes

Applies to