CustomerDataCollection Class
Represents a collection of customer data.
public sealed class CustomerDataCollection : IEnumerable<CustomXmlPart>, IEnumerable
Public NotInheritable Class CustomerDataCollection
Implements IEnumerable(Of CustomXmlPart), IEnumerable
- Inheritance:
- System.ObjectCustomerDataCollection
Properties
Count
Gets the number of CustomXmlParts contained in the collection.
Property Value
- System.Int32
The number of CustomXmlParts contained in the collection.
Methods
Add(CustomXmlPart)
Adds a CustomXmlPart to the end of the collection.
Parameters
item
- CustomXmlPart
The CustomXmlPart to be added to the end of the collection.
Exceptions
- System.ArgumentNullException
item
is null.
- System.ArgumentException
item
is already contained in another CustomXmlPartCollection or it belongs to another SlideObject.
Clear()
Removes all CustomXmlParts from the collection.
Contains(CustomXmlPart)
Determines whether a CustomXmlPart is in the collection.
public bool Contains(CustomXmlPart item)
Public Function Contains(item As CustomXmlPart) As Boolean
Parameters
item
- CustomXmlPart
The CustomXmlPart to locate in the collection.
Returns
- System.Boolean
true if item
is found in the collection; otherwise, false.
Exceptions
- System.ArgumentNullException
item
is null.
GetEnumerator()
Returns an enumerator that iterates through the CustomXmlPartCollection.
public IEnumerator<CustomXmlPart> GetEnumerator()
Public Function GetEnumerator As IEnumerator(Of CustomXmlPart)
Returns
- System.Collections.Generic.IEnumerator<CustomXmlPart>
An System.Collections.Generic.IEnumerator<T> for the collection.
Remove(CustomXmlPart)
Removes the first occurrence of a specific CustomXmlPart from the collection.
public bool Remove(CustomXmlPart item)
Public Function Remove(item As CustomXmlPart) As Boolean
Parameters
item
- CustomXmlPart
The CustomXmlPart to remove from the collection.
Returns
- System.Boolean
true if item
is successfully removed; otherwise, false. This method also returns false if item
was not found in the original collection.