Previous in Contents Next in Contents

AdminWebServer.GetWebSites Method

The GetWebSites method enumerates all Web sites. The method returns an array of numbers representing all server instances.

Syntax

AdminWebServer.GetWebSites()

Parameters

None.

Example

The following example creates an AdminServer object called objWebServer, then calls the GetWebSites method on this object. The method returns an array of Web sites in the array WebSites. The array is then enumerated to display the server instance number for each Web site:

Set objWebServer = CreateObject("Commerce.AdminWebserver")

' Get Web sites
WebSites = objWebServer.GetWebSites
For Index1 = LBound(WebSites) To UBound(WebSites)
    ' Print instance number of web site
    Response.Write "<br>Web Site Instance " + WebSites(Index1)
next

© 1997-2000 Microsoft Corporation. All rights reserved.