Partilhar via


VCReferences.AddActiveXReference(String, Int32, Int32, Int32, String) Method

Definition

Adds an ActiveX (COM) reference to the project.

public:
 System::Object ^ AddActiveXReference(System::String ^ typeLibGuid, int majorVersion, int minorVersion, int localeID, System::String ^ wrapper);
public:
 Platform::Object ^ AddActiveXReference(Platform::String ^ typeLibGuid, int majorVersion, int minorVersion, int localeID, Platform::String ^ wrapper);
winrt::Windows::Foundation::IInspectable AddActiveXReference(std::wstring const & typeLibGuid, int majorVersion, int minorVersion, int localeID, std::wstring const & wrapper);
[System.Runtime.InteropServices.DispId(901)]
public object AddActiveXReference (string typeLibGuid, int majorVersion, int minorVersion, int localeID, string wrapper);
[<System.Runtime.InteropServices.DispId(901)>]
abstract member AddActiveXReference : string * int * int * int * string -> obj
Public Function AddActiveXReference (typeLibGuid As String, majorVersion As Integer, minorVersion As Integer, localeID As Integer, wrapper As String) 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.

Returns

An object representing the project reference.

Attributes

Remarks

One way to obtain the parameters for this method is to add the desired reference to your project, save the project, and then examine its .vcproj file. The parameters are listed under "ActiveXReference."

Applies to