IVsUserContext.UnadviseUpdate Method
Disables clients from receiving notification of updates to the user context.
Namespace: Microsoft.VisualStudio.Shell.Interop
Assembly: Microsoft.VisualStudio.Shell.Interop (in Microsoft.VisualStudio.Shell.Interop.dll)
Syntax
声明
Function UnadviseUpdate ( _
dwCookie As UInteger _
) As Integer
用法
Dim instance As IVsUserContext
Dim dwCookie As UInteger
Dim returnValue As Integer
returnValue = instance.UnadviseUpdate(dwCookie)
int UnadviseUpdate(
uint dwCookie
)
int UnadviseUpdate(
[InAttribute] unsigned int dwCookie
)
abstract UnadviseUpdate :
dwCookie:uint32 -> int
function UnadviseUpdate(
dwCookie : uint
) : int
Parameters
- dwCookie
Type: System.UInt32
[in] Unique identifier for the referenced event sink. This is the same value returned by the AdviseUpdate 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 context.idl:
HRESULT IVsUserContext::UnadviseUpdate(
[in] VSCOOKIE dwCookie
);
The value of the dwCookie parameter is the value returned from a call to AdviseUpdate. Call the AdviseUpdate method to receive notification from the Dynamic Help window when it is updating based on the active context. Call the IVsUserContext.UnadviseUpdate method to turn off this notification.
.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.