편집

다음을 통해 공유


XmlSchemaSet.Contains Method

Definition

Indicates whether an XML Schema definition language (XSD) schema is in the XmlSchemaSet.

Overloads

Contains(String)

Indicates whether an XML Schema definition language (XSD) schema with the specified target namespace URI is in the XmlSchemaSet.

Contains(XmlSchema)

Indicates whether the specified XML Schema definition language (XSD) XmlSchema object is in the XmlSchemaSet.

Contains(String)

Source:
XmlSchemaSet.cs
Source:
XmlSchemaSet.cs
Source:
XmlSchemaSet.cs

Indicates whether an XML Schema definition language (XSD) schema with the specified target namespace URI is in the XmlSchemaSet.

public:
 bool Contains(System::String ^ targetNamespace);
public bool Contains (string? targetNamespace);
public bool Contains (string targetNamespace);
member this.Contains : string -> bool
Public Function Contains (targetNamespace As String) As Boolean

Parameters

targetNamespace
String

The schema targetNamespace property.

Returns

true if a schema with the specified target namespace URI is in the XmlSchemaSet; otherwise, false.

Remarks

Schemas that are indirectly added to the XmlSchemaSet are detected by the Contains method; for example, imported schemas. As a result, if a schema for the http://www.contoso.com/retail namespace which imports a schema for the http://www.contoso.com/books namespace is added to the XmlSchemaSet, calling Contains with http://www.contoso.com/books as a parameter, it returns true.

Applies to

Contains(XmlSchema)

Source:
XmlSchemaSet.cs
Source:
XmlSchemaSet.cs
Source:
XmlSchemaSet.cs

Indicates whether the specified XML Schema definition language (XSD) XmlSchema object is in the XmlSchemaSet.

public:
 bool Contains(System::Xml::Schema::XmlSchema ^ schema);
public bool Contains (System.Xml.Schema.XmlSchema schema);
member this.Contains : System.Xml.Schema.XmlSchema -> bool
Public Function Contains (schema As XmlSchema) As Boolean

Parameters

schema
XmlSchema

The XmlSchema object.

Returns

true if the XmlSchema object is in the XmlSchemaSet; otherwise, false.

Exceptions

The XmlSchemaSet passed as a parameter is null.

Applies to