IDesignerDataSchema.GetSchemaItems(DesignerDataSchemaClass) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Gets a collection of specified schema items.
public:
System::Collections::ICollection ^ GetSchemaItems(System::ComponentModel::Design::Data::DesignerDataSchemaClass ^ schemaClass);
public System.Collections.ICollection GetSchemaItems (System.ComponentModel.Design.Data.DesignerDataSchemaClass schemaClass);
abstract member GetSchemaItems : System.ComponentModel.Design.Data.DesignerDataSchemaClass -> System.Collections.ICollection
Public Function GetSchemaItems (schemaClass As DesignerDataSchemaClass) As ICollection
Parameters
- schemaClass
- DesignerDataSchemaClass
The schema objects to return.
Returns
A collection of schema objects of the specified type.
Remarks
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.