Compartilhar via


IVsLibraryReferenceManager.RemoveComponentReference(String, Object) Method

Definition

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

public:
 int RemoveComponentReference(System::String ^ wszPath, System::Object ^ pVsLibrary);
public:
 int RemoveComponentReference(Platform::String ^ wszPath, Platform::Object ^ pVsLibrary);
int RemoveComponentReference(std::wstring const & wszPath, winrt::Windows::Foundation::IInspectable const & pVsLibrary);
public int RemoveComponentReference (string wszPath, object pVsLibrary);
abstract member RemoveComponentReference : string * obj -> int
Public Function RemoveComponentReference (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::RemoveComponentReference(  
   [in] LPCOLESTR wszPath,   
   [in] IUnknown* pVsLibrary  
);  

Applies to