Partager via


IVsLibraryReferenceManager.RemoveComponentReference Method

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

Namespace:  Microsoft.VisualStudio.Shell.Interop
Assembly:  Microsoft.VisualStudio.Shell.Interop (in Microsoft.VisualStudio.Shell.Interop.dll)

Syntax

'Declaration
Function RemoveComponentReference ( _
    wszPath As String, _
    pVsLibrary As Object _
) As Integer
int RemoveComponentReference(
    string wszPath,
    Object pVsLibrary
)
int RemoveComponentReference(
    [InAttribute] String^ wszPath, 
    [InAttribute] Object^ pVsLibrary
)
abstract RemoveComponentReference : 
        wszPath:string * 
        pVsLibrary:Object -> int
function RemoveComponentReference(
    wszPath : String, 
    pVsLibrary : Object
) : int

Parameters

  • wszPath
    Type: String

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

  • pVsLibrary
    Type: Object

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

Return Value

Type: Int32
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
);

.NET Framework Security

See Also

Reference

IVsLibraryReferenceManager Interface

Microsoft.VisualStudio.Shell.Interop Namespace