Share via


CreateSqlCollectionItem(System.Data.SqlClient.SqlDataReader) Method

When overridden in a derived class, the CreateSqlCollectionItem method of the DocumentWorkspaceCollection class populates the properties of a DocumentWorkspace instance with the column values of the supplied SqlDataReader object.

Parameters

dr    A SqlDataReader whose columns contain the properties of a DocumentWorkspace object.

Return Value

A DocumentWorkspace object.

Remarks

The Item property of the DocumentWorkspaceCollection class calls the proc_getPortalWorkspaceById stored procedure to populate a SqlDataReader instance with the properties of the specified DocumentWorkspace object and then calls the CreateSqlCollectionItem method internally to return a DocumentWorkspace instance with its properties populated from the columns of the SqlDataReader.

Requirements

Platforms: Microsoft Windows Server 2003

Security: Code Access Security