共用方式為


VCReferences.AddProjectReferenceByIdentifierEx(String, Boolean) Method

Definition

Adds an assembly (.NET) reference to the selected project using its unique identifier.

public:
 System::Object ^ AddProjectReferenceByIdentifierEx(System::String ^ Identifier, [Runtime::InteropServices::Out] bool % created);
winrt::Windows::Foundation::IInspectable AddProjectReferenceByIdentifierEx(std::wstring const & Identifier, [Runtime::InteropServices::Out] bool & created);
[System.Runtime.InteropServices.DispId(916)]
public object AddProjectReferenceByIdentifierEx (string Identifier, out bool created);
[<System.Runtime.InteropServices.DispId(916)>]
abstract member AddProjectReferenceByIdentifierEx : string * bool -> obj
Public Function AddProjectReferenceByIdentifierEx (Identifier As String, ByRef created As Boolean) As Object

Parameters

Identifier
String

Unique identifier of the assembly.

created
Boolean

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

Returns

The path of the assembly.

Attributes

Remarks

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

Applies to