Collection Properties

All SQL-DMO collections expose the Count and TypeOf properties.

The Count property returns the number of members in a collection and is often used for application control-of-flow logic, for example, in a for...next loop.

For SQL-DMO collections, the TypeOf property reports the TypeOf property value for the objects contained within the collection. For example, the TypeOf property value for the Databases collection returns SQLDMOObj_Database, which is the TypeOf property value of a Database object.

All SQL-DMO collection properties are read-only.

  


(c) 1988-98 Microsoft Corporation. All Rights Reserved.