다음을 통해 공유


ArmApiManagementModelFactory.ApiManagementServiceNameAvailabilityResult Method

Definition

Initializes a new instance of ApiManagementServiceNameAvailabilityResult.

public static Azure.ResourceManager.ApiManagement.Models.ApiManagementServiceNameAvailabilityResult ApiManagementServiceNameAvailabilityResult (bool? isNameAvailable = default, string message = default, Azure.ResourceManager.ApiManagement.Models.ApiManagementServiceNameUnavailableReason? reason = default);
static member ApiManagementServiceNameAvailabilityResult : Nullable<bool> * string * Nullable<Azure.ResourceManager.ApiManagement.Models.ApiManagementServiceNameUnavailableReason> -> Azure.ResourceManager.ApiManagement.Models.ApiManagementServiceNameAvailabilityResult
Public Shared Function ApiManagementServiceNameAvailabilityResult (Optional isNameAvailable As Nullable(Of Boolean) = Nothing, Optional message As String = Nothing, Optional reason As Nullable(Of ApiManagementServiceNameUnavailableReason) = Nothing) As ApiManagementServiceNameAvailabilityResult

Parameters

isNameAvailable
Nullable<Boolean>

True if the name is available and can be used to create a new API Management service; otherwise false.

message
String

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 <resourceName> is already in use, and direct them to select a different name.

reason
Nullable<ApiManagementServiceNameUnavailableReason>

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.

Returns

A new ApiManagementServiceNameAvailabilityResult instance for mocking.

Applies to