System.Xml.Schema.XmlSchemaCollection.Contains Method

Gets a value indicating whether a schema with the specified namespace is in the collection.

Syntax

public bool Contains (string ns)

Parameters

ns
The namespace URI associated with the schema. For XML Schemas, this will typically be the target namespace.

Returns

true if a schema with the specified namespace is in the collection; 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