Udostępnij za pośrednictwem


ResourceManagerModelFactory.ManagementGroupNameAvailabilityResult Method

Definition

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

nameAvailable
Nullable<Boolean>

Required. True indicates name is valid and available. False indicates the name is invalid, unavailable, or both.

reason
Nullable<ManagementGroupNameUnavailableReason>

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