Share via


IVsSolutionUIEvents.OnFilterChanged Method

Called when a filter is enabled or disabled.

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

Syntax

'Declaration
Sub OnFilterChanged ( _
    ByRef pguidOldFilterGoup As Guid, _
    nOldFilterID As UInteger, _
    ByRef pguidNewFilterGroup As Guid, _
    nNewFilterID As UInteger _
)
void OnFilterChanged(
    ref Guid pguidOldFilterGoup,
    uint nOldFilterID,
    ref Guid pguidNewFilterGroup,
    uint nNewFilterID
)
void OnFilterChanged(
    [InAttribute] Guid% pguidOldFilterGoup, 
    [InAttribute] unsigned int nOldFilterID, 
    [InAttribute] Guid% pguidNewFilterGroup, 
    [InAttribute] unsigned int nNewFilterID
)
abstract OnFilterChanged : 
        pguidOldFilterGoup:Guid byref * 
        nOldFilterID:uint32 * 
        pguidNewFilterGroup:Guid byref * 
        nNewFilterID:uint32 -> unit
function OnFilterChanged(
    pguidOldFilterGoup : Guid, 
    nOldFilterID : uint, 
    pguidNewFilterGroup : Guid, 
    nNewFilterID : uint
)

Parameters

  • pguidOldFilterGoup
    Type: System.Guid%

    [in] The group to which the old filter belongs.

  • nOldFilterID
    Type: System.UInt32

    [in] The identifier of the old filter.

  • pguidNewFilterGroup
    Type: System.Guid%

    [in] The group to which the new filter belongs.

  • nNewFilterID
    Type: System.UInt32

    [in] The identifier of the new filter.

Remarks

The pguidNewFilterGroup and nNewFilterID pair indicate which filter was just turned on while pguidOldFilterGroup and nOldFilterID indicate the filter that was just turned off. To disable a filter without switching to a new filter, pass in Guid.Empty for pguidNewFilterGroup and zero (0) for nNewFilterID.

.NET Framework Security

See Also

Reference

IVsSolutionUIEvents Interface

Microsoft.VisualStudio.Shell.Interop Namespace