Export (0) Print
Expand All
Expand Minimize

SearchServiceApplication.GetIdForContextKey method

SharePoint 2013

Gets the ID for the context key. A context refers to any property in a query and each property has a dynamically allocated ID.

Namespace:  Microsoft.Office.Server.Search.Administration
Assembly:  Microsoft.Office.Server.Search (in Microsoft.Office.Server.Search.dll)

public int GetIdForContextKey(
	SearchObjectOwner searchObjectOwner,
	string ContextName
)

Parameters

searchObjectOwner
Type: Microsoft.Office.Server.Search.Administration.SearchObjectOwner

The owner of the search site hierarchy.

ContextName
Type: System.String

The context’s name.

Return value

Type: System.Int32
The context ID.

Community Additions

ADD
Show:
© 2014 Microsoft