IVsIntellisenseProject.AddAssemblyReference(String) 方法

定义

向项目添加程序集引用。

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

参数

bstrAbsPath
String

中包含程序集的完整路径的字符串。

返回

Int32

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

适用于