Ejemplo n.º 1
0
 /// <summary>
 /// Check if a resource name is available.
 /// </summary>
 /// <remarks>
 /// Check if a resource name is available.
 /// </remarks>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='name'>
 /// Resource name to verify.
 /// </param>
 /// <param name='type'>
 /// Resource type used for verification. Possible values include: 'Site',
 /// 'Slot', 'HostingEnvironment', 'PublishingUser', 'Microsoft.Web/sites',
 /// 'Microsoft.Web/sites/slots', 'Microsoft.Web/hostingEnvironments',
 /// 'Microsoft.Web/publishingUsers'
 /// </param>
 /// <param name='isFqdn'>
 /// Is fully qualified domain name.
 /// </param>
 public static ResourceNameAvailability CheckNameAvailability(this IWebSiteManagementClient operations, string name, string type, bool?isFqdn = default(bool?))
 {
     return(operations.CheckNameAvailabilityAsync(name, type, isFqdn).GetAwaiter().GetResult());
 }