ArmStorageModelFactory.StorageAccountNameAvailabilityResult 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 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
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.
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
Azure SDK for .NET