IWpfTableControl.SetFilter(String, IEntryFilter) Method

Definition

Set the filter for the specified key.

public:
 Microsoft::VisualStudio::Shell::TableControl::IEntryFilter ^ SetFilter(System::String ^ key, Microsoft::VisualStudio::Shell::TableControl::IEntryFilter ^ newFilter);
public:
 Microsoft::VisualStudio::Shell::TableControl::IEntryFilter ^ SetFilter(Platform::String ^ key, Microsoft::VisualStudio::Shell::TableControl::IEntryFilter ^ newFilter);
Microsoft::VisualStudio::Shell::TableControl::IEntryFilter SetFilter(std::wstring const & key, Microsoft::VisualStudio::Shell::TableControl::IEntryFilter const & newFilter);
public Microsoft.VisualStudio.Shell.TableControl.IEntryFilter SetFilter (string key, Microsoft.VisualStudio.Shell.TableControl.IEntryFilter newFilter);
abstract member SetFilter : string * Microsoft.VisualStudio.Shell.TableControl.IEntryFilter -> Microsoft.VisualStudio.Shell.TableControl.IEntryFilter
Public Function SetFilter (key As String, newFilter As IEntryFilter) As IEntryFilter

Parameters

key
String

The key.

newFilter
IEntryFilter

The new filter.

Returns

The previous filter for key if one exists or null if there is no corresponding filter.

Remarks

Use newFilter == null to clear the filter associated with the key.

Calling this method will raise the FiltersChanged event if the filter is actually changed.

Applies to