Freigeben über


IVsUIHierarchy.UnadviseHierarchyEvents Method (UInt32)

Disables client notification of hierarchy events without requiring that the hierarchy implement IConnectionPointContainer.

Namespace:  Microsoft.VisualStudio.Shell.Interop
Assembly:  Microsoft.VisualStudio.Shell.Interop (in Microsoft.VisualStudio.Shell.Interop.dll)

Syntax

'Declaration
Function UnadviseHierarchyEvents ( _
    dwCookie As UInteger _
) As Integer
'Usage
Dim instance As IVsUIHierarchy
Dim dwCookie As UInteger
Dim returnValue As Integer

returnValue = instance.UnadviseHierarchyEvents(dwCookie)
int UnadviseHierarchyEvents(
    uint dwCookie
)
int UnadviseHierarchyEvents(
    [InAttribute] unsigned int dwCookie
)
abstract UnadviseHierarchyEvents : 
        dwCookie:uint32 -> int 
function UnadviseHierarchyEvents(
    dwCookie : uint
) : int

Parameters

  • dwCookie
    Type: System.UInt32
    [in] Abstract handle to the client that was disabled from receiving notifications of hierarchy events.

Return Value

Type: System.Int32
If the method succeeds, it returns S_OK. If it fails, it returns an error code.

Implements

IVsHierarchy.UnadviseHierarchyEvents(UInt32)

Remarks

COM Signature

From vsshell.idl:

HRESULT IVsUIHierarchy::UnadviseHierarchyEvents(
   [in] VSCOOKIE dwCookie
);

This is the same dwCookie that passed in with the call to AdviseHierarchyEvents.

.NET Framework Security

See Also

Reference

IVsUIHierarchy Interface

IVsUIHierarchy Members

UnadviseHierarchyEvents Overload

Microsoft.VisualStudio.Shell.Interop Namespace