Share via


ArmStorageModelFactory.StorageAccountNameAvailabilityResult Method

Definition

Initializes a new instance of StorageAccountNameAvailabilityResult.

public static Azure.ResourceManager.Storage.Models.StorageAccountNameAvailabilityResult StorageAccountNameAvailabilityResult (bool? isNameAvailable = default, Azure.ResourceManager.Storage.Models.StorageAccountNameUnavailableReason? reason = default, string message = default);
static member StorageAccountNameAvailabilityResult : Nullable<bool> * Nullable<Azure.ResourceManager.Storage.Models.StorageAccountNameUnavailableReason> * string -> Azure.ResourceManager.Storage.Models.StorageAccountNameAvailabilityResult
Public Shared Function StorageAccountNameAvailabilityResult (Optional isNameAvailable As Nullable(Of Boolean) = Nothing, Optional reason As Nullable(Of StorageAccountNameUnavailableReason) = Nothing, Optional message As String = Nothing) As StorageAccountNameAvailabilityResult

Parameters

isNameAvailable
Nullable<Boolean>

Gets a boolean value that indicates whether the name is available for you to use. If true, the name is available. If false, the name has already been taken or is invalid and cannot be used.

reason
Nullable<StorageAccountNameUnavailableReason>

Gets the reason that a storage account name could not be used. The Reason element is only returned if NameAvailable is false.

message
String

Gets an error message explaining the Reason value in more detail.

Returns

A new StorageAccountNameAvailabilityResult instance for mocking.

Applies to