ArmApiManagementModelFactory.ApiManagementServiceNameAvailabilityResult 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 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
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.
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
Azure SDK for .NET