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.StringA string that specifies at least one internal name of the federated search location.
configuration
Type: Microsoft.Office.Server.Search.Administration.LocationConfigurationA LocationConfiguration object that contains the location configuration returned by this method.
Return Value
Type: System.Boolean
See Also
Reference
LocationConfigurationCollection Class