Compartilhar via


SearchServiceApplication.GetIdForContextKey method

Obtém a ID da chave de contexto. Um contexto refere-se a qualquer propriedade de uma consulta e cada propriedade tem um ID de alocada dinamicamente.

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

Syntax

'Declaração
Public Function GetIdForContextKey ( _
    searchObjectOwner As SearchObjectOwner, _
    ContextName As String _
) As Integer
'Uso
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
)

Parâmetros

Valor retornado

Type: System.Int32
A identificação de contexto.

Ver também

Referência

SearchServiceApplication class

SearchServiceApplication members

Microsoft.Office.Server.Search.Administration namespace