ArmSearchModelFactory.SearchServiceNameAvailabilityResult 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 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
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
Azure SDK for .NET