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
'宣言
Function UnregisterPriorityCommandTarget ( _
dwCookie As UInteger _
) As Integer
'使用
Dim instance As IVsRegisterPriorityCommandTarget
Dim dwCookie As UInteger
Dim returnValue As Integer
returnValue = instance.UnregisterPriorityCommandTarget(dwCookie)
int UnregisterPriorityCommandTarget(
uint dwCookie
)
int UnregisterPriorityCommandTarget(
[InAttribute] unsigned int dwCookie
)
function UnregisterPriorityCommandTarget(
dwCookie : uint
) : int
Parameters
dwCookie
Type: System.UInt32[in] Cookie (VSCOOKIE) identifying the command target to unregister. Returned by the RegisterPriorityCommandTarget method.
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 vsshell80.idl:
[C++]
HRESULT IVsRegisterPriorityCommandTarget::UnregisterPriorityCommandTarget(
[in] VSCOOKIE dwCookie
);
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
IVsRegisterPriorityCommandTarget Interface