IVsItemTypeResolutionSite.AddReference(String) 方法

定义

添加对项目的引用。

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

参数

bstrReferencePath
String

中包含要添加的引用的字符串。

返回

Int32

如果该方法成功,则它会返回 S_OK。 如果该方法失败,则会返回错误代码。

适用于