System.Xml.Schema.XmlSchemaCollection.Contains Method

Gets a value indicating whether the targetNamespace of the specified System.Xml.Schema.XmlSchema is in the collection.

Syntax

public bool Contains (XmlSchema schema)

Parameters

schema
The XmlSchema object.

Returns

true if there is a schema in the collection with the same targetNamespace; otherwise, false.

Remarks

Note:

The System.Xml.Schema.XmlSchemaCollection class is obsolete in the .NET Framework version 2.0 and has been replaced by the System.Xml.Schema.XmlSchemaSet class.

Requirements

Namespace: System.Xml.Schema
Assembly: System.Xml (in System.Xml.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0, 4.0.0.0