Udostępnij za pośrednictwem


IVsLibraryReferenceManager.AddComponentReference(String, Object) Method

Definition

Called by the project when adding a reference to a component identified by its path.

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

Parameters

wszPath
String

[In] Reference to a component identified by its path.

pVsLibrary
Object

[in] A pointer to an object of type pVsLibrary.

Returns

If the method succeeds, it returns S_OK. If it fails, it returns an error code.

Remarks

COM Signature

From vsshell.idl:

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

Applies to