ArmKeyVaultModelFactory.KeyVaultNameAvailabilityResult 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 KeyVaultNameAvailabilityResult.
public static Azure.ResourceManager.KeyVault.Models.KeyVaultNameAvailabilityResult KeyVaultNameAvailabilityResult (bool? nameAvailable = default, Azure.ResourceManager.KeyVault.Models.KeyVaultNameUnavailableReason? reason = default, string message = default);
static member KeyVaultNameAvailabilityResult : Nullable<bool> * Nullable<Azure.ResourceManager.KeyVault.Models.KeyVaultNameUnavailableReason> * string -> Azure.ResourceManager.KeyVault.Models.KeyVaultNameAvailabilityResult
Public Shared Function KeyVaultNameAvailabilityResult (Optional nameAvailable As Nullable(Of Boolean) = Nothing, Optional reason As Nullable(Of KeyVaultNameUnavailableReason) = Nothing, Optional message As String = Nothing) As KeyVaultNameAvailabilityResult
Parameters
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.
The reason that a vault name could not be used. The Reason element is only returned if NameAvailable is false.
- message
- String
An error message explaining the Reason value in more detail.
Returns
A new KeyVaultNameAvailabilityResult instance for mocking.