コード例 #1
0
 /// <summary>
 /// Determines whether a resource can be created with the specified name.
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='parameters'>
 /// The parameters to request for name availability.
 /// </param>
 public static CheckNameAvailabilityResponse CheckNameAvailability(this IServersOperations operations, CheckNameAvailabilityRequest parameters)
 {
     return(operations.CheckNameAvailabilityAsync(parameters).GetAwaiter().GetResult());
 }
コード例 #2
0
 /// <summary>
 /// Check the name availability in the target location.
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='location'>
 /// The region name which the operation will lookup into.
 /// </param>
 /// <param name='serverParameters'>
 /// Contains the information used to provision the Analysis Services server.
 /// </param>
 public static CheckServerNameAvailabilityResult CheckNameAvailability(this IServersOperations operations, string location, CheckServerNameAvailabilityParameters serverParameters)
 {
     return(operations.CheckNameAvailabilityAsync(location, serverParameters).GetAwaiter().GetResult());
 }