你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

CheckNameAvailabilityResult Interface

Implements

public interface CheckNameAvailabilityResult
extends HasInnerModel<CheckNameAvailabilityResultInner>

The result of checking for Service Bus namespace name availability.

Method Summary

Modifier and Type Method and Description
abstract boolean isAvailable()

Gets a boolean value that indicates whether the name is available for you to use.

abstract String unavailabilityMessage()

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

abstract UnavailableReason unavailabilityReason()

Gets the unavailabilityReason that a namespace name could not be used.

Method Details

isAvailable

public abstract boolean isAvailable()

Gets a boolean value that indicates whether the name is available for you to use.

Returns:

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.

unavailabilityMessage

public abstract String unavailabilityMessage()

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

Returns:

an error message explaining the Reason value in more detail

unavailabilityReason

public abstract UnavailableReason unavailabilityReason()

Gets the unavailabilityReason that a namespace name could not be used.

Returns:

the unavailabilityReason that a namespace name could not be used. The Reason element is only returned if NameAvailable is false.

Applies to