Compartilhar via


LocationConfigurationCollection.TryGetLocationConfigurationByName method

Recupera o primeiro objeto da coleção que corresponda a propriedade especificada InternalName[Microsoft.Office.Server.Search.Administration.LocationConfiguration] .

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

Syntax

'Declaração
Public Function TryGetLocationConfigurationByName ( _
    name As String, _
    <OutAttribute> ByRef configuration As LocationConfiguration _
) As Boolean
'Uso
Dim instance As LocationConfigurationCollection
Dim name As String
Dim configuration As LocationConfiguration
Dim returnValue As Boolean

returnValue = instance.TryGetLocationConfigurationByName(name, _
    configuration)
public bool TryGetLocationConfigurationByName(
    string name,
    out LocationConfiguration configuration
)

Parâmetros

  • name
    Type: System.String

    Uma seqüência de caracteres que especifica pelo menos um nome interno do local de pesquisa federado.

Valor retornado

Type: System.Boolean

Ver também

Referência

LocationConfigurationCollection class

LocationConfigurationCollection members

Microsoft.Office.Server.Search.Administration namespace