Share via


ArmSearchModelFactory.SearchServiceNameAvailabilityResult Method

Definition

Initializes a new instance of SearchServiceNameAvailabilityResult.

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

Parameters

isNameAvailable
Nullable<Boolean>

A value indicating whether the name is available.

reason
Nullable<SearchServiceNameUnavailableReason>

The reason why the name is not available. 'Invalid' indicates the name provided does not match the naming requirements (incorrect length, unsupported characters, etc.). 'AlreadyExists' indicates that the name is already in use and is therefore unavailable.

message
String

A message that explains why the name is invalid and provides resource naming requirements. Available only if 'Invalid' is returned in the 'reason' property.

Returns

A new SearchServiceNameAvailabilityResult instance for mocking.

Applies to