System.ComponentModel.Design.Data.IDesignerDataSchema.GetSchemaItems Method

Gets a collection of specified schema items.

Syntax

public ICollection GetSchemaItems (DesignerDataSchemaClass schemaClass)

Parameters

schemaClass
The schema objects to return.

Returns

A collection of schema objects of the specified type.

Remarks

The IDesignerDataSchema.GetSchemaItems(DesignerDataSchemaClass) method returns a collection of all the specified schema objects in the data store.

See the System.ComponentModel.Design.Data.DesignerDataSchemaClass class for the list of schema objects supported by the .NET Framework. Additional schema objects can be added to the System.ComponentModel.Design.Data.DesignerDataSchemaClass class by creating a derived type.

If the data store does not support the requested schema object, the IDesignerDataSchema.GetSchemaItems(DesignerDataSchemaClass) method should return null. You can use the IDesignerDataSchema.SupportsSchemaClass(DesignerDataSchemaClass) method to determine whether a data store supports the requested schema object before calling the IDesignerDataSchema.GetSchemaItems(DesignerDataSchemaClass) method, to avoid returning null to your application.

If the data store supports the requested object, but does not contain any instances, the IDesignerDataSchema.GetSchemaItems(DesignerDataSchemaClass) method should return an empty collection.

Requirements

Namespace: System.ComponentModel.Design.Data
Assembly: System.Design (in System.Design.dll)
Assembly Versions: 2.0.0.0