IDesignerDataSchema.SupportsSchemaClass(DesignerDataSchemaClass) 方法

定义

返回一个值,该值指示数据存储区是否包含指定的数据架构对象。Returns a value indicating whether the data store contains the specified data-schema object.

public:
 bool SupportsSchemaClass(System::ComponentModel::Design::Data::DesignerDataSchemaClass ^ schemaClass);
public bool SupportsSchemaClass (System.ComponentModel.Design.Data.DesignerDataSchemaClass schemaClass);
abstract member SupportsSchemaClass : System.ComponentModel.Design.Data.DesignerDataSchemaClass -> bool
Public Function SupportsSchemaClass (schemaClass As DesignerDataSchemaClass) As Boolean

参数

schemaClass
DesignerDataSchemaClass

要返回的架构对象。The schema objects to return.

返回

Boolean

如果数据存储区支持指定的数据架构对象,则为 true;否则为 falsetrue if the data store supports the specified data-schema object; otherwise, false.

注解

SupportsSchemaClass方法指示数据存储区是否支持指定的数据架构对象。The SupportsSchemaClass method indicates whether the data store supports a specified data-schema object. 如果数据存储不支持指定的对象,则该 SupportsSchemaClass 方法应返回 falseIf the data store does not support the specified object, the SupportsSchemaClass method should return false.

您可以通过从类派生,为其他数据架构对象添加测试 DesignerDataSchemaClassYou can add tests for additional data-schema objects by deriving from the DesignerDataSchemaClass class.

适用于