Repository GetCollection Method

Meta Data Services Programming

Meta Data Services Programming

Repository GetCollection Method

This method returns a result set based on selection criteria. The result set is a collection of repository objects. When you use this method on the repository session object, the repository engine filters the collection of all objects in the repository database.

This property is not attached to the default interface for the repository Automation object; it is attached to the IReposQuery interface. For more information about accessing a member of an interface that is not the default interface, see Accessing Automation Object Members.

Syntax

set variable  =  object.GetCollection(filter)

The GetCollection method syntax has the following parts.

Part Description
variable Declared as an object collection. It receives the new ObjectCol instance.
object The object that represents the open repository instance through which application code or a tool interacts with a repository.
filter The query string that selects a result set. For more information about query syntax and arguments, see IReposQuery Interface.

See Also

ObjectCol Object

Repository Object