IVsRegisterPriorityCommandTarget.UnregisterPriorityCommandTarget Method
Unregisters the command target identified by a cookie.
Namespace: Microsoft.VisualStudio.Shell.Interop
Assembly: Microsoft.VisualStudio.Shell.Interop (in Microsoft.VisualStudio.Shell.Interop.dll)
Syntax
'Declaration
Function UnregisterPriorityCommandTarget ( _
dwCookie As UInteger _
) As Integer
int UnregisterPriorityCommandTarget(
uint dwCookie
)
int UnregisterPriorityCommandTarget(
[InAttribute] unsigned int dwCookie
)
abstract UnregisterPriorityCommandTarget :
dwCookie:uint32 -> int
function UnregisterPriorityCommandTarget(
dwCookie : uint
) : int
Parameters
dwCookie
Type: UInt32[in] Cookie (VSCOOKIE) identifying the command target to unregister. Returned by the RegisterPriorityCommandTarget method.
Return Value
Type: Int32
If the method succeeds, it returns S_OK. If it fails, it returns an error code.
Remarks
COM Signature
From vsshell80.idl:
[C++]
HRESULT IVsRegisterPriorityCommandTarget::UnregisterPriorityCommandTarget(
[in] VSCOOKIE dwCookie
);
.NET Framework Security
- 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.