This documentation is archived and is not being maintained.

XmlSchemas.IsDataSet Method

This API supports the .NET Framework infrastructure and is not intended to be used directly from your code.

Static method that determines whether the specified XML schema contains a custom IsDataSet attribute set to true, or its equivalent.

Namespace:  System.Xml.Serialization
Assembly:  System.Xml (in System.Xml.dll)

public static bool IsDataSet(
	XmlSchema schema


Type: System.Xml.Schema.XmlSchema
The XML schema to check for an IsDataSet attribute with a true value.

Return Value

Type: System.Boolean
true if the specified schema exists; otherwise, false.

The IsDataSet attribute comes from the namespace urn:schemas-microsoft-com:xml-msdata.

The IsDataSet method is called by the .NET Framework's XML serialization infrastructure and does not need to be called directly.

.NET Framework

Supported in: 4, 3.5, 3.0, 2.0, 1.1, 1.0

.NET Framework Client Profile

Supported in: 4, 3.5 SP1

Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows XP SP2 x64 Edition, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.