Compartilhar via


IVsItemTypeResolutionSite.AddReference(String) Method

Definition

Adds a reference to the project.

public:
 int AddReference(System::String ^ bstrReferencePath);
public:
 int AddReference(Platform::String ^ bstrReferencePath);
int AddReference(std::wstring const & bstrReferencePath);
public int AddReference (string bstrReferencePath);
abstract member AddReference : string -> int
Public Function AddReference (bstrReferencePath As String) As Integer

Parameters

bstrReferencePath
String

[in] String containing the reference to add.

Returns

If the method succeeds, it returns S_OK. If it fails, it returns an error code.

Applies to