LocationConfigurationCollection.TryGetLocationConfigurationByInternalName, méthode (Microsoft.Office.Server.Search.Administration)
Retrieves the Microsoft.Office.Server.Search.Administration.LocationConfiguration object that matches the specified InternalName property.
Espace de noms : Microsoft.Office.Server.Search.Administration
Assembly : Microsoft.Office.Server.Search (dans microsoft.office.server.search.dll)
Syntaxe
'Déclaration
Public Function TryGetLocationConfigurationByInternalName ( _
internalName As String, _
<OutAttribute> ByRef configuration As LocationConfiguration _
) As Boolean
'Utilisation
Dim instance As LocationConfigurationCollection
Dim internalName As String
Dim configuration As LocationConfiguration
Dim returnValue As Boolean
returnValue = instance.TryGetLocationConfigurationByInternalName(internalName, configuration)
public bool TryGetLocationConfigurationByInternalName (
string internalName,
out LocationConfiguration configuration
)
Paramètres
- internalName
A string that specifies the internal name of the federated search location.
- configuration
A LocationConfiguration object that contains the location configuration returned by this method.
Remarques
The following code sample stores a location configuration for the specified internal name in the supplied LocationConfiguration object.
Exemple
string locName = "location internal name";
LocationConfiguration locationConfig = null;
LocationConfigurationCollection locations = SearchContext.Current.LocationConfigurations;
locations.TryGetLocationConfigurationByInternalName(locName, out locationConfig);
Voir aussi
Référence
LocationConfigurationCollection, classe
Membres LocationConfigurationCollection
Microsoft.Office.Server.Search.Administration, espace de noms