ArmStorageSyncModelFactory.StorageSyncNameAvailabilityResult 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 StorageSyncNameAvailabilityResult.
public static Azure.ResourceManager.StorageSync.Models.StorageSyncNameAvailabilityResult StorageSyncNameAvailabilityResult (bool? isNameAvailable = default, Azure.ResourceManager.StorageSync.Models.StorageSyncNameUnavailableReason? reason = default, string message = default);
static member StorageSyncNameAvailabilityResult : Nullable<bool> * Nullable<Azure.ResourceManager.StorageSync.Models.StorageSyncNameUnavailableReason> * string -> Azure.ResourceManager.StorageSync.Models.StorageSyncNameAvailabilityResult
Public Shared Function StorageSyncNameAvailabilityResult (Optional isNameAvailable As Nullable(Of Boolean) = Nothing, Optional reason As Nullable(Of StorageSyncNameUnavailableReason) = Nothing, Optional message As String = Nothing) As StorageSyncNameAvailabilityResult
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 invalid and cannot be used.
Gets the reason that a Storage Sync Service 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 StorageSyncNameAvailabilityResult instance for mocking.