Sdílet prostřednictvím


ArmBatchModelFactory.BatchNameAvailabilityResult Method

Definition

Initializes a new instance of BatchNameAvailabilityResult.

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

Parameters

isNameAvailable
Nullable<Boolean>

Gets 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 invalid and cannot be used.

reason
Nullable<BatchNameUnavailableReason>

Gets the reason that a Batch account name could not be used. The Reason element is only returned if NameAvailable is false.

message
String

Gets an error message explaining the Reason value in more detail.

Returns

A new BatchNameAvailabilityResult instance for mocking.

Applies to