IVsLibraryReferenceManager.AddComponentReference(String, Object) Метод

Определение

Вызывается проектом при добавлении ссылки на компонент, который идентифицируется путем.

public:
 int AddComponentReference(System::String ^ wszPath, System::Object ^ pVsLibrary);
public:
 int AddComponentReference(Platform::String ^ wszPath, Platform::Object ^ pVsLibrary);
int AddComponentReference(std::wstring const & wszPath, winrt::Windows::Foundation::IInspectable const & pVsLibrary);
public int AddComponentReference (string wszPath, object pVsLibrary);
abstract member AddComponentReference : string * obj -> int
Public Function AddComponentReference (wszPath As String, pVsLibrary As Object) As Integer

Параметры

wszPath
String

[In] Ссылка на компонент, который определен путем к нему.

pVsLibrary
Object

[in] Указатель на объект типа pVsLibrary.

Возвращаемое значение

Int32

Если метод завершается успешно, возвращает значение S_OK. В противном случае функция возвращает код ошибки.

Комментарии

Подпись COM

Из всшелл. IDL:

HRESULT IVsLibraryReferenceManager::AddComponentReference(  
   [in] LPCOLESTR wszPath,   
   [in] IUnknown* pVsLibrary  
);  

Применяется к