IDesignerDataSchema.GetSchemaItems Method (DesignerDataSchemaClass)

 

Gets a collection of specified schema items.

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

ICollection GetSchemaItems(
	DesignerDataSchemaClass schemaClass
)

Parameters

schemaClass
Type: System.ComponentModel.Design.Data.DesignerDataSchemaClass

The schema objects to return.

Return Value

Type: System.Collections.ICollection

A collection of schema objects of the specified type.

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

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

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

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

.NET Framework
Available since 2.0
Return to top
Show: