Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
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)
Syntax
'Declaration
Public Function GetIdForContextKey ( _
searchObjectOwner As SearchObjectOwner, _
ContextName As String _
) As Integer
'Usage
Dim instance As SearchServiceApplication
Dim searchObjectOwner As SearchObjectOwner
Dim ContextName As String
Dim returnValue As Integer
returnValue = instance.GetIdForContextKey(searchObjectOwner, _
ContextName)
public int GetIdForContextKey(
SearchObjectOwner searchObjectOwner,
string ContextName
)
Parameters
searchObjectOwner
Type: Microsoft.Office.Server.Search.Administration.SearchObjectOwnerThe owner of the search site hierarchy.
ContextName
Type: System.StringThe context’s name.
Return value
Type: System.Int32
The context ID.
See also
Reference
SearchServiceApplication class