IVsLibraryReferenceManager.AddComponentReference(String, Object) Método
Definição
Importante
Algumas informações se referem a produtos de pré-lançamento que podem ser substancialmente modificados antes do lançamento. A Microsoft não oferece garantias, expressas ou implícitas, das informações aqui fornecidas.
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
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
);