public final class FolderId extends ServiceId
Constructor and Description |
---|
FolderId()
Initializes a new instance.
|
FolderId(String uniqueId)
Initializes a new instance.Use this constructor to link this FolderId to
an existing folder that you have the unique Id of.
|
FolderId(WellKnownFolderName folderName)
Initializes a new instance.Use this constructor to link this FolderId to
a well known folder (e.g.
|
FolderId(WellKnownFolderName folderName,
Mailbox mailbox)
Initializes a new instance.Use this constructor to link this FolderId to
a well known folder (e.g.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj)
Determines whether the specified is equal to the current.
|
static FolderId |
getFolderIdFromString(String uniqueId)
Defines an implicit conversion between string and FolderId.
|
static FolderId |
getFolderIdFromWellKnownFolderName(WellKnownFolderName folderName)
Defines an implicit conversion between WellKnownFolderName and FolderId.
|
WellKnownFolderName |
getFolderName()
Gets the name of the folder associated with the folder Id.
|
protected boolean |
getIsValid()
True if this instance is valid, false otherwise.
|
Mailbox |
getMailbox()
Gets the mailbox of the folder.
|
String |
getXmlElementName()
Gets the name of the XML element.
|
int |
hashCode()
Serves as a hash function for a particular type.
|
String |
toString()
Returns a String that represents the current Object.
|
void |
validate(ExchangeVersion version)
Validates FolderId against a specified request version.
|
void |
writeAttributesToXml(EwsServiceXmlWriter writer)
Writes attribute to XML.
|
assign, getChangeKey, getUniqueId, isValid, readAttributesFromXml, sameIdAndChangeKey, setChangeKey, setUniqueId, writeToXml
addOnChangeEvent, canSetFieldValue, changed, clearChangeEvents, clearChangeLog, func, getNamespace, internalValidate, loadFromXml, loadFromXml, readTextValueFromXml, removeChangeEvent, setNamespace, tryReadElementFromXml, tryReadElementFromXmlToPatch, updateFromXml, updateFromXml, validate, writeElementsToXml, writeToXml, writeToXml
public FolderId()
public FolderId(String uniqueId) throws Exception
uniqueId
- the unique idException
- the exceptionpublic FolderId(WellKnownFolderName folderName)
folderName
- the folder namepublic FolderId(WellKnownFolderName folderName, Mailbox mailbox)
folderName
- the folder namemailbox
- the mailboxpublic String getXmlElementName()
getXmlElementName
in class ServiceId
public void writeAttributesToXml(EwsServiceXmlWriter writer) throws ServiceXmlSerializationException
writeAttributesToXml
in class ServiceId
writer
- the writerServiceXmlSerializationException
- the service xml serialization exceptionpublic void validate(ExchangeVersion version) throws ServiceVersionException
version
- the versionServiceVersionException
- the service version exceptionpublic WellKnownFolderName getFolderName()
public Mailbox getMailbox()
public static FolderId getFolderIdFromString(String uniqueId) throws Exception
uniqueId
- the unique idException
- the exceptionpublic static FolderId getFolderIdFromWellKnownFolderName(WellKnownFolderName folderName)
folderName
- the folder nameprotected boolean getIsValid()
public int hashCode()
Copyright © 2012–2015 Microsoft. All rights reserved.