Dela via


ArmServiceBusModelFactory.ServiceBusNameAvailabilityResult Method

Definition

Initializes a new instance of ServiceBusNameAvailabilityResult.

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

Parameters

message
String

The detailed info regarding the reason associated with the namespace.

isNameAvailable
Nullable<Boolean>

Value indicating namespace is availability, true if the namespace is available; otherwise, false.

reason
Nullable<ServiceBusNameUnavailableReason>

The reason for unavailability of a namespace.

Returns

A new ServiceBusNameAvailabilityResult instance for mocking.

Applies to