GlobalConfig2.Sites Method (PIA)

[Visual Basic .NET] Use this method to retrieve a list of all the sites available in the Administration database. This method returns an object that implements the _Recordset interface that contains a single record; the number of fields in the Fields collection is equal to the number of sites in the Commerce Server 2002 installation. Each Fields collection contains the name of one of the sites.

[C#] Use this method to retrieve a list of all the sites available in the Administration database. This method returns an ADODB26Lib._Recordset object that contains a single record; the number of fields in the Fields collection is equal to the number of sites in the Microsoft Commerce Server 2002 installation. Each Fields collection contains the name of one of the sites.

Definition

[Visual Basic .NET]

Imports Microsoft.CommerceServer.Interop.Configuration
Imports ADODB26Lib    ‘ for _Recordset
…
Public Function Sites() As _Recordset

[C#]

using Microsoft.CommerceServer.Interop.Configuration;
using ADODB26Lib;                                   //For _Recordset
…
public _Recordset Sites();

Return Values

[Visual Basic .NET] If this method completes successfully, it returns an object that implements the _Recordset interface that contains a list of all the sites available in the Administration data store.

[C#] This method returns an object that implements the ADODB26Lib._Recordset interface****to a Recordset containing a list of all sites available in the Administration data store.

Exceptions

This method may throw one of many mapped exceptions or an exception of type COMException. See Standard COM Errors for additional details.

Remarks

[Visual Basic .NET] The Initialize method must be called before this method can be called.

[C#] The Initialize method must be called before this method can be called.

Requirements

Namespace: Microsoft.CommerceServer.Interop.Configuration

Platforms: Windows 2000, Windows Server 2003

Assembly: CS_MSCSCfg (in cs_mscscfg.dll)

See Also

GlobalConfig2 Class

Copyright © 2005 Microsoft Corporation.
All rights reserved.