IProfileOperations.CheckDnsPrefixAvailabilityAsync Method

Asynchronously checks for the availability of the specified DNS name.

Namespace: Microsoft.WindowsAzure.Management.TrafficManager
Assembly: Microsoft.WindowsAzure.Management.TrafficManager (in Microsoft.WindowsAzure.Management.TrafficManager.dll)

Dim instance As IProfileOperations
Dim dnsName As String
Dim cancellationToken As CancellationToken
Dim returnValue As Task(Of DnsPrefixAvailabilityCheckResponse)

returnValue = instance.CheckDnsPrefixAvailabilityAsync(dnsName, cancellationToken)

Task<DnsPrefixAvailabilityCheckResponse> CheckDnsPrefixAvailabilityAsync (
	string dnsName,
	CancellationToken cancellationToken
Task<DnsPrefixAvailabilityCheckResponse> CheckDnsPrefixAvailabilityAsync (
	String dnsName, 
	CancellationToken cancellationToken
function CheckDnsPrefixAvailabilityAsync (
	dnsName : String, 
	cancellationToken : CancellationToken
) : Task<DnsPrefixAvailabilityCheckResponse>



The DNS name that you want to use.


The cancellation token.

Return Value

An DnsPrefixAvailabilityCheckResponse object that  indicates whether the DNS name is available.

You must include .trafficmanager.net in the name.

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Development Platforms

Windows Vista, Windows 7, Windows Server 2008, Windows 8.1, Windows Server 2012 R2, Windows 8 and Windows Server 2012

Target Platforms