public final class FolderIdCollection extends ComplexPropertyCollection<FolderId>
Modifier | Constructor and Description |
---|---|
protected |
FolderIdCollection()
Initializes a new instance of the
|
Modifier and Type | Method and Description |
---|---|
void |
add(FolderId folderId)
Adds a folder Id to the collection.
|
FolderId |
add(WellKnownFolderName folderName)
Adds a well-known folder to the collection.
|
void |
clear()
Clears the collection.
|
protected FolderId |
createComplexProperty(String xmlElementName)
Creates the complex property.
|
protected String |
getCollectionItemXmlElementName(FolderId complexProperty)
Gets the name of the collection item XML element.
|
boolean |
remove(FolderId folderId)
Removes the specified folder Id from the collection.
|
boolean |
remove(WellKnownFolderName folderName)
Removes the specified well-known folder from the collection.
|
void |
removeAt(int index)
Removes the folder Id at the specified index.
|
clearChangeLog, complexPropertyChanged, contains, getAddedItems, getCount, getItems, getModifiedItems, getPropertyAtIndex, getRemovedItems, indexOf, internalAdd, internalClear, internalRemove, internalRemoveAt, itemChanged, iterator, loadFromXml, loadFromXml, removeFromChangeLog, shouldWriteToXml, updateFromXml, writeDeleteUpdateToXml, writeElementsToXml, writeSetUpdateToXml, writeToXml
addOnChangeEvent, canSetFieldValue, changed, clearChangeEvents, func, getNamespace, internalValidate, readAttributesFromXml, readTextValueFromXml, removeChangeEvent, setNamespace, tryReadElementFromXml, tryReadElementFromXmlToPatch, updateFromXml, validate, writeAttributesToXml, writeToXml
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
forEach, spliterator
protected FolderIdCollection()
protected FolderId createComplexProperty(String xmlElementName)
createComplexProperty
in class ComplexPropertyCollection<FolderId>
xmlElementName
- Name of the XML element.public void add(FolderId folderId) throws Exception
folderId
- The folder Id to add.Exception
- the exceptionprotected String getCollectionItemXmlElementName(FolderId complexProperty)
getCollectionItemXmlElementName
in class ComplexPropertyCollection<FolderId>
complexProperty
- accepts FolderIdpublic FolderId add(WellKnownFolderName folderName)
folderName
- the folder namepublic void clear()
public void removeAt(int index)
index
- The zero-based index of the folder Id to remove.public boolean remove(FolderId folderId) throws Exception
folderId
- The folder Id to remove from the collection.Exception
- the exceptionpublic boolean remove(WellKnownFolderName folderName)
folderName
- The well-knwon folder to remove from the collection.Copyright © 2012–2015 Microsoft. All rights reserved.