IVsSolution.UnadviseSolutionEvents Method
Disables a client from receiving notifications of solution events.
Namespace: Microsoft.VisualStudio.Shell.Interop
Assembly: Microsoft.VisualStudio.Shell.Interop (in Microsoft.VisualStudio.Shell.Interop.dll)
Syntax
'宣告
Function UnadviseSolutionEvents ( _
dwCookie As UInteger _
) As Integer
'用途
Dim instance As IVsSolution
Dim dwCookie As UInteger
Dim returnValue As Integer
returnValue = instance.UnadviseSolutionEvents(dwCookie)
int UnadviseSolutionEvents(
uint dwCookie
)
int UnadviseSolutionEvents(
[InAttribute] unsigned int dwCookie
)
abstract UnadviseSolutionEvents :
dwCookie:uint32 -> int
function UnadviseSolutionEvents(
dwCookie : uint
) : int
Parameters
- dwCookie
Type: System.UInt32
[in] Abstract handle to the client that is to be disabled from being notified of solution events.
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 IVsSolution::UnadviseSolutionEvents(
[in] VSCOOKIE dwCookie
);
This is the same dwCookie passed in with the call to AdviseSolutionEvents.
.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.