ArmAppServiceModelFactory.AppServiceNameAvailabilityResult Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Initializes a new instance of AppServiceNameAvailabilityResult.
public static Azure.ResourceManager.AppService.Models.AppServiceNameAvailabilityResult AppServiceNameAvailabilityResult(bool? isNameAvailable = default, Azure.ResourceManager.AppService.Models.AppServiceNameUnavailableReason? reason = default, string message = default);
static member AppServiceNameAvailabilityResult : Nullable<bool> * Nullable<Azure.ResourceManager.AppService.Models.AppServiceNameUnavailableReason> * string -> Azure.ResourceManager.AppService.Models.AppServiceNameAvailabilityResult
Public Shared Function AppServiceNameAvailabilityResult (Optional isNameAvailable As Nullable(Of Boolean) = Nothing, Optional reason As Nullable(Of AppServiceNameUnavailableReason) = Nothing, Optional message As String = Nothing) As AppServiceNameAvailabilityResult
Parameters
<code>true</code> indicates name is valid and available. <code>false</code> indicates the name is invalid, unavailable, or both. Serialized Name: ResourceNameAvailability.nameAvailable
<code>Invalid</code> indicates the name provided does not match Azure App Service naming requirements. <code>AlreadyExists</code> indicates that the name is already in use and is therefore unavailable. Serialized Name: ResourceNameAvailability.reason
- message
- String
If reason == invalid, provide the user with the reason why the given name is invalid, and provide the resource naming requirements so that the user can select a valid name. If reason == AlreadyExists, explain that resource name is already in use, and direct them to select a different name. Serialized Name: ResourceNameAvailability.message
Returns
A new AppServiceNameAvailabilityResult instance for mocking.