IVsItemTypeResolutionSite.AddReference(String) 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
添加对项目的引用。
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
中包含要添加的引用的字符串。
返回
如果该方法成功,则它会返回 S_OK。 如果该方法失败,则会返回错误代码。