Share via


SearchSettingGroup.GetContexts Method

Retrieves all contexts of the search setting group where the context name contains the specified filter.

Namespace:  Microsoft.SharePoint.Search.Extended.Administration.Keywords
Assembly:  Microsoft.SharePoint.Search.Extended.Administration (in Microsoft.SharePoint.Search.Extended.Administration.dll)

Syntax

'Declaration
Function GetContexts ( _
    filter As String _
) As ContextCollection
'Usage
Dim instance As SearchSettingGroup
Dim filter As String
Dim returnValue As ContextCollection

returnValue = instance.GetContexts(filter)
ContextCollection GetContexts(
    string filter
)

Parameters

  • filter
    Type: System.String

    The filter string that the context name must contain in order to be included in the collection.

Return Value

Type: Microsoft.SharePoint.Search.Extended.Administration.Keywords.ContextCollection
A ContextCollection with all the matching Contexts.

See Also

Reference

SearchSettingGroup Interface

SearchSettingGroup Members

Microsoft.SharePoint.Search.Extended.Administration.Keywords Namespace