Partager via


UnknownXmlElementCollection Class

The UnknownXmlElementCollection class contains the XML elements that were not mapped to a property on the Web Part during import.

System.Object

   System.Collections.CollectionBase

      Microsoft.SharePoint.WebPartPages.UnknownXmlElementCollection

Public Constructors

The following table shows the constructors of the UnknownXmlElementCollection class and a brief description of each.

Name Description
UnknownXmlElementCollection Initializes a new instance of the UnknownXmlElementCollection class.

Public Methods

The following table shows the methods of the UnknownXmlElementCollection class and a brief description of each.

Name Description
Add(System.Xml.XmlElement) Used to add elements to the collection.
CopyTo(System.Xml.XmlElement,, Int32) Used to copy element(s) from the collection to a new Array.

Visit GetEnumerator()

Provides support for iterating over the elements in UnknownXmlElementCollection.
Insert(Int32, System.Xml.XmlElement) Adds an element to the specified location in the collection.
Remove(System.Xml.XmlElement) Used to remove elements from the collection.

Public Properties

The following table shows the properties of the UnknownXmlElementCollection class, the data type of each property, and a brief description of each.

Name Data type Description
IsSynchronized Boolean Returns a value indicating whether access to the collection is synchronized (thread safe).
Item(Int32) System.Xml.XmlElement Returns the value of the element with the item number.
SyncRoot object Returns the SyncRoot object for the collection.

Thread Safety

The SyncRoot property can be used by derived classes to create their own thread-safe wrapper. The IsSynchronized property can also be used to determine whether the collection is thread safe.

Requirements

Namespace: Microsoft.SharePoint.WebPartPages

Platforms: Microsoft Windows Server 2003

Assembly: Microsoft SharePoint Team Services (in Microsoft.SharePoint.dll)

Security: Code Access Security