Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
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.
Show:
© 2015 Microsoft