DataSourceDesigner.SchemasEquivalent Method (IDataSourceSchema, IDataSourceSchema)

 

Provides a value that indicates whether two schemas are equal.

Namespace:   System.Web.UI.Design
Assembly:  System.Design (in System.Design.dll)

public static bool SchemasEquivalent(
	IDataSourceSchema schema1,
	IDataSourceSchema schema2
)

Parameters

schema1
Type: System.Web.UI.Design.IDataSourceSchema

The first schema to compare (derived from the IDataSourceSchema).

schema2
Type: System.Web.UI.Design.IDataSourceSchema

The second schema to compare.

Return Value

Type: System.Boolean

true if both schemas are equivalent; otherwise, false.

Comparison of the two schemas is based on the views, as well as the names and types of the fields that are contained in the views. The SchemasEquivalent method can be used without an instance of the DataSourceDesigner class.

.NET Framework
Available since 2.0
Return to top
Show: