System::Xml::Schema::XmlSchemaObjectCollection class

XmlSchemaObjectCollection class

A collection of XmlSchemaObjects.

class XmlSchemaObjectCollection : public System::Collections::CollectionBase<SharedPtr<System::Xml::Schema::XmlSchemaObject>>

Methods

MethodDescription
Add(const SharedPtr<XmlSchemaObject>&)Adds an XmlSchemaObject to the XmlSchemaObjectCollection.
Contains(const SharedPtr<XmlSchemaObject>&)Indicates if the specified XmlSchemaObject is in the XmlSchemaObjectCollection.
CopyTo(const ArrayPtr<SharedPtr<XmlSchemaObject>>&, int32_t)Copies all the XmlSchemaObjects from the collection into the given array, starting at the given index.
GetEnumerator() overrideReturns an enumerator for iterating through the XmlSchemaObjects contained in the XmlSchemaObjectCollection.
virtual idx_get(int32_t)Returns the XmlSchemaObject at the specified index.
virtual idx_set(int32_t, SharedPtr<XmlSchemaObject>)Sets the XmlSchemaObject at the specified index.
IndexOf(const SharedPtr<XmlSchemaObject>&)Returns the collection index corresponding to the specified XmlSchemaObject.
Insert(int32_t, const SharedPtr<XmlSchemaObject>&)Inserts an XmlSchemaObject to the XmlSchemaObjectCollection.
Remove(const SharedPtr<XmlSchemaObject>&)Removes an XmlSchemaObject from the XmlSchemaObjectCollection.
SetTemplateWeakPtr(uint32_t) overrideSet n’th template argument a weak pointer (rather than shared). Allows switching pointers in containers to weak mode.
XmlSchemaObjectCollection()Initializes a new instance of the XmlSchemaObjectCollection class.
XmlSchemaObjectCollection(const SharedPtr<XmlSchemaObject>&)Initializes a new instance of the XmlSchemaObjectCollection class that takes an XmlSchemaObject.

Typedefs

TypedefDescription
PtrAn alias for shared pointer to an instance of this class.

Remarks

Objects of this class should only be allocated using System::MakeObject() function. Never create instances of this type on stack or using operator new, as it will result in runtime errors and/or assertion faults. Always wrap this class into System::SmartPtr pointer and use this pointer to pass it to functions as argument.

See Also