Share via


IWebSpaceOperations.ListWebSitesAsync Method

Asynchronously retrieves a list of websites in a web space.

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

Usage

'Usage
Dim instance As IWebSpaceOperations
Dim webSpaceName As String
Dim parameters As WebSiteListParameters
Dim cancellationToken As CancellationToken
Dim returnValue As Task(Of WebSpacesListWebSitesResponse)

returnValue = instance.ListWebSitesAsync(webSpaceName, parameters, cancellationToken)

Syntax

'Declaration
Function ListWebSitesAsync ( _
    webSpaceName As String, _
    parameters As WebSiteListParameters, _
    cancellationToken As CancellationToken _
) As Task(Of WebSpacesListWebSitesResponse)
Task<WebSpacesListWebSitesResponse> ListWebSitesAsync (
    string webSpaceName,
    WebSiteListParameters parameters,
    CancellationToken cancellationToken
)
Task<WebSpacesListWebSitesResponse^>^ ListWebSitesAsync (
    String^ webSpaceName, 
    WebSiteListParameters^ parameters, 
    CancellationToken cancellationToken
)
Task<WebSpacesListWebSitesResponse> ListWebSitesAsync (
    String webSpaceName, 
    WebSiteListParameters parameters, 
    CancellationToken cancellationToken
)
function ListWebSitesAsync (
    webSpaceName : String, 
    parameters : WebSiteListParameters, 
    cancellationToken : CancellationToken
) : Task<WebSpacesListWebSitesResponse>

Parameters

  • webSpaceName
    The name of the web space.
  • parameters
    The WebSiteListParameters object that contains the parameters that are used to list websites.
  • cancellationToken
    The cancellation token.

Return Value

An WebSpacesListWebSitesResponse object that contains the list of websites.

Remarks

For more information about retrieving a list of websites, see Get a List of All Websites in a Webspace.

Thread Safety

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

Platforms

Development Platforms

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

Target Platforms

See Also

Reference

IWebSpaceOperations Interface
IWebSpaceOperations Members
Microsoft.WindowsAzure.Management.WebSites Namespace