Udostępnij za pośrednictwem


VCReferences.AddActiveXReferenceEx Method

Definition

Adds an ActiveX (COM) reference to the project.

public:
 System::Object ^ AddActiveXReferenceEx(System::String ^ typeLibGuid, int majorVersion, int minorVersion, int localeID, System::String ^ wrapper, [Runtime::InteropServices::Out] bool % created);
winrt::Windows::Foundation::IInspectable AddActiveXReferenceEx(std::wstring const & typeLibGuid, int majorVersion, int minorVersion, int localeID, std::wstring const & wrapper, [Runtime::InteropServices::Out] bool & created);
[System.Runtime.InteropServices.DispId(915)]
public object AddActiveXReferenceEx (string typeLibGuid, int majorVersion, int minorVersion, int localeID, string wrapper, out bool created);
[<System.Runtime.InteropServices.DispId(915)>]
abstract member AddActiveXReferenceEx : string * int * int * int * string * bool -> obj
Public Function AddActiveXReferenceEx (typeLibGuid As String, majorVersion As Integer, minorVersion As Integer, localeID As Integer, wrapper As String, ByRef created As Boolean) As Object

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.

created
Boolean

When this method returns, contains true if the reference is created; otherwise, false. This parameter is passed uninitialized.

Returns

An object representing the project reference.

Attributes

Remarks

This method is the same as the AddActiveXReference method, but includes the created parameter to support interoperability.

Applies to