IDesignerDataSchema.GetSchemaItems Method

Gets a collection of specified schema items.

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

ICollection GetSchemaItems (
	DesignerDataSchemaClass schemaClass
ICollection GetSchemaItems (
	DesignerDataSchemaClass schemaClass
function GetSchemaItems (
	schemaClass : DesignerDataSchemaClass
) : ICollection
Not applicable.



The schema objects to return.

Return Value

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 a null reference (Nothing in Visual Basic). 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 a null reference (Nothing in Visual Basic) 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.

Windows 98, Windows Server 2000 SP4, Windows Millennium Edition, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.

.NET Framework

Supported in: 3.0, 2.0

Community Additions