IVsLibraryReferenceManager.AddComponentReference(String, Object) Método

Definição

Chamado pelo projeto ao adicionar uma referência a um componente identificado por seu caminho.

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

Parâmetros

wszPath
String

No Referência a um componente identificado por seu caminho.

pVsLibrary
Object

no Um ponteiro para um objeto do tipo pVsLibrary.

Retornos

Int32

Se o método for bem-sucedido, retornará S_OK. Se falhar, retornará um código de erro.

Comentários

Assinatura COM

De VSShell. idl:

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

Aplica-se a