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
'宣言
Function RemoveComponentReference ( _
wszPath As String, _
pVsLibrary As Object _
) As Integer
'使用
Dim instance As IVsLibraryReferenceManager
Dim wszPath As String
Dim pVsLibrary As Object
Dim returnValue As Integer
returnValue = instance.RemoveComponentReference(wszPath, _
pVsLibrary)
int RemoveComponentReference(
string wszPath,
Object pVsLibrary
)
int RemoveComponentReference(
[InAttribute] String^ wszPath,
[InAttribute] Object^ pVsLibrary
)
function RemoveComponentReference(
wszPath : String,
pVsLibrary : Object
) : int
Parameters
wszPath
Type: System.String[in] Reference to a component identified by its path.
pVsLibrary
Type: System.Object[In] A pointer to an object of type pVsLibrary.
Return Value
Type: System.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
);
Permissions
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.
See Also
Reference
IVsLibraryReferenceManager Interface