Beispiel #1
0
 /// <summary>
 /// Determines whether or not the given synonym map exists in the Azure Search service.
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name="synonymMapName">
 /// The name of the synonym map.
 /// </param>
 /// <param name='searchRequestOptions'>
 /// Additional parameters for the operation.
 /// </param>
 /// <returns>
 /// <c>true</c> if the synonym map exists; <c>false</c> otherwise.
 /// </returns>
 public static bool Exists(
     this ISynonymMapsOperations operations,
     string synonymMapName,
     SearchRequestOptions searchRequestOptions = default(SearchRequestOptions))
 {
     return(operations.ExistsAsync(synonymMapName, searchRequestOptions).GetAwaiter().GetResult());
 }