XmlSchemas.Add Method

Definition

Adds an object to the collection of the XmlSchema objects.

Overloads

Add(XmlSchema)

Adds an object to the end of the collection.

Add(XmlSchemas)

Adds an instance of the XmlSchemas class to the end of the collection.

Add(XmlSchema, Uri)

Adds an XmlSchema object that represents an assembly reference to the collection.

Add(XmlSchema)

Adds an object to the end of the collection.

public:
 int Add(System::Xml::Schema::XmlSchema ^ schema);
public int Add (System.Xml.Schema.XmlSchema schema);
member this.Add : System.Xml.Schema.XmlSchema -> int
Public Function Add (schema As XmlSchema) As Integer

Parameters

schema
XmlSchema

The XmlSchema object to be added to the collection of objects.

Returns

The index at which the XmlSchema is added.

Add(XmlSchemas)

Adds an instance of the XmlSchemas class to the end of the collection.

public:
 void Add(System::Xml::Serialization::XmlSchemas ^ schemas);
public void Add (System.Xml.Serialization.XmlSchemas schemas);
member this.Add : System.Xml.Serialization.XmlSchemas -> unit
Public Sub Add (schemas As XmlSchemas)

Parameters

schemas
XmlSchemas

The XmlSchemas object to be added to the end of the collection.

Add(XmlSchema, Uri)

Adds an XmlSchema object that represents an assembly reference to the collection.

public:
 int Add(System::Xml::Schema::XmlSchema ^ schema, Uri ^ baseUri);
public int Add (System.Xml.Schema.XmlSchema schema, Uri baseUri);
member this.Add : System.Xml.Schema.XmlSchema * Uri -> int
Public Function Add (schema As XmlSchema, baseUri As Uri) As Integer

Parameters

schema
XmlSchema

The XmlSchema to add.

baseUri
Uri

The Uri of the schema object.

Returns

The index at which the XmlSchema is added.

Applies to