LocationConfigurationCollection.TryGetLocationConfigurationByName method

Retrieves the first [Microsoft.Office.Server.Search.Administration.LocationConfiguration] object in the collection that matches the specified InternalName property.

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

Syntax

'Declaration
Public Function TryGetLocationConfigurationByName ( _
    name As String, _
    <OutAttribute> ByRef configuration As LocationConfiguration _
) As Boolean
'Usage
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
)

Parameters

  • name
    Type: System.String

    A string that specifies at least one internal name of the federated search location.

Return value

Type: System.Boolean

See also

Reference

LocationConfigurationCollection class

LocationConfigurationCollection members

Microsoft.Office.Server.Search.Administration namespace