The SqlCollectionBase class is the abstract class from which objects in the TopologyObjectCollectionBase class inherit. This class represents a collection of objects in the topology whose definitions are stored in databases.
The following table shows the constructors of the SqlCollectionBase class and a brief description of each.
|SqlCollectionBase||Initializes a new instance of the SqlCollectionBase class.|
The following table shows the public methods of the SqlCollectionBase class and a brief description of each.
|GetEnumerator||Override to implement the GetEnumerator method of the IEnumerable interface to allow iterating over the collection.|
The following table shows the protected methods of the SqlCollectionBase class and a brief description of each.
|CreateSqlCollectionItem(System.Data.SqlClient.SqlDataReader)||Override to populate the values of properties for a single item in the collection.|
|InitializeSqlCollection||Override to initialize the collection.|
The following table shows the properties of the SqlCollectionBase class, the data type of each property, and a brief description of each.
|IsEmpty||Boolean||Gets a value that indicates if the collection is empty.|
Any public static (Shared in Visual Basic) members of this type are safe for multithreaded operations. Instance members are not guaranteed to be thread safe.
To use the properties and methods of the objects in the Topology namespace you must be a member of the local STS_WPG and SPS_WPG security groups, and a member of the db_owner database role for the configuration database.
In addition, for certain methods, such as those that create a portal site, you must be a member of the local Administrators group, and have membership in the Database Creators and Security Administrators server roles in the SQL Server instance that hosts the configuration database.
Platforms: Microsoft Windows Server 2003
Assembly: Microsoft.SharePoint.Portal (in Microsoft.SharePoint.Portal.dll)
Security: Code Access Security