ResourceManagerModelFactory.ManagementGroupNameAvailabilityResult 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 ManagementGroupNameAvailabilityResult.
public static Azure.ResourceManager.ManagementGroups.Models.ManagementGroupNameAvailabilityResult ManagementGroupNameAvailabilityResult (bool? nameAvailable = default, Azure.ResourceManager.ManagementGroups.Models.ManagementGroupNameUnavailableReason? reason = default, string message = default);
static member ManagementGroupNameAvailabilityResult : Nullable<bool> * Nullable<Azure.ResourceManager.ManagementGroups.Models.ManagementGroupNameUnavailableReason> * string -> Azure.ResourceManager.ManagementGroups.Models.ManagementGroupNameAvailabilityResult
Public Shared Function ManagementGroupNameAvailabilityResult (Optional nameAvailable As Nullable(Of Boolean) = Nothing, Optional reason As Nullable(Of ManagementGroupNameUnavailableReason) = Nothing, Optional message As String = Nothing) As ManagementGroupNameAvailabilityResult
Parameters
Required. True indicates name is valid and available. False indicates the name is invalid, unavailable, or both.
Required if nameAvailable == false. Invalid indicates the name provided does not match the resource provider's naming requirements (incorrect length, unsupported characters, etc.) AlreadyExists indicates that the name is already in use and is therefore unavailable.
- message
- String
Required if nameAvailable == false. Localized. 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 is already in use, and direct them to select a different name.
Returns
A new ManagementGroupNameAvailabilityResult instance for mocking.
Applies to
Azure SDK for .NET