ItemAttachment class

Represents an item attachment.
Inheritance

Constructors

ItemAttachment.withExchangeService(ExchangeService service)
Initializes a new instance of the
ItemAttachment.withOwner(Item owner)
Initializes a new instance of the

Properties

ContentId String?
Gets or sets the content Id of the attachment. ContentId can be used as a custom way to identify an attachment in order to reference it from within the body of the item the attachment belongs to.
getter/setter pairinherited
ContentLocation String?
Gets or sets the content location of the attachment. ContentLocation can be used to associate an attachment with a Url defining its location on the Web.
getter/setter pairinherited
ContentType String?
Gets or sets the content type of the attachment.
getter/setter pairinherited
DateTime DateTime
no getterinherited
hashCode int
The hash code for this object.
no setterinherited
Id String?
Gets the Id of the attachment.
getter/setter pairinherited
IsInline bool?
Gets or sets a value indicating whether this is an inline attachment. Inline attachments are not visible to end users.
getter/setter pairinherited
IsNew bool
True if the attachment has not yet been saved, false otherwise.
no setterinherited
Item Item?
Gets the item associated with the attachment.
no setter
LastModifiedTime DateTime?
Gets the date and time when this attachment was last modified.
no setterinherited
Name String?
Gets or sets the name of the attachment.
getter/setter pairinherited
Namespace XmlNamespace
Gets or sets the namespace.
getter/setter pairinherited
OnChangeList List<IComplexPropertyChangedDelegate>
Occurs when property changed.
getter/setter pairinherited
Owner Item?
Gets the owner of the attachment.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
Service ExchangeService
Gets the related exchange service.
no setterinherited
Size int?
Gets the size of the attachment.
getter/setter pairinherited

Methods

addOnChangeEvent(IComplexPropertyChangedDelegate change) → void
inherited
CanSetFieldValue<T>(T field, T value) bool
Sets value of field.
inherited
Changed() → dynamic
Instance was changed.
inherited
ClearChangeLog() → void
Clears the change log.
inherited
GetXmlElementName() String
Obtains EWS XML element name for this object.
override
InternalLoad(BodyType? bodyType, Iterable<PropertyDefinitionBase>? additionalProperties) Future<void>
Load the attachment.
inherited
InternalValidate() → void
Validates this instance.
inherited
ItemChanged(ServiceObject serviceObject) → void
Implements the OnChange event handler for the item associated with the attachment.
Load() Future<void>
Loads the attachment. Calling this method results in a call to EWS.
inherited
LoadFromXml(EwsServiceXmlReader reader, String? xmlElementName) Future<void>
Loads from XML.
inherited
LoadFromXmlWithNamespace(EwsServiceXmlReader reader, XmlNamespace xmlNamespace, String? xmlElementName) Future<void>
Loads from XML.
inherited
LoadWithBodyTypeAndProperties(BodyType bodyType, List<PropertyDefinitionBase> additionalProperties) → void
Loads this attachment.
LoadWithProperties(List<PropertyDefinitionBase> additionalProperties) → void
Loads this attachment.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
ReadAttributesFromXml(EwsServiceXmlReader reader) → void
Reads the attributes from XML.
inherited
ReadTextValueFromXml(EwsServiceXmlReader reader) Future<void>
Reads the text value from XML.
inherited
removeChangeEvent(IComplexPropertyChangedDelegate change) → void
inherited
set(Item value) → dynamic
ThrowIfThisIsNotNew() → void
Throws exception if this is not a new service object.
inherited
toString() String
A string representation of this object.
inherited
TryReadElementFromXml(EwsServiceXmlReader reader) Future<bool>
Tries to read the element at the current position of the reader.
override
TryReadElementFromXmlToPatch(EwsServiceXmlReader reader) Future<bool>
For ItemAttachment, AttachmentId and Item should be patched.
override
UpdateFromXml(EwsServiceXmlReader reader, String xmlElementName) Future<void>
Loads from XML to update this property.
inherited
UpdateFromXmlWithNamespace(EwsServiceXmlReader reader, XmlNamespace xmlNamespace, String xmlElementName) Future<void>
Loads from XML to update itself.
inherited
Validate() → void
Implements ISelfValidate.Validate. Validates this instance.
inherited
ValidateWithIndex(int attachmentIndex) → void
Validates this instance.
override
WriteAttributesToXml(EwsServiceXmlWriter writer) → void
Writes the attributes to XML.
inherited
WriteElementsToXml(EwsServiceXmlWriter writer) → void
Writes the properties of this object as XML elements.
override
WriteToXml(EwsServiceXmlWriter writer, String? xmlElementName) → void
Writes to XML.
inherited
WriteToXmlWithNamespace(EwsServiceXmlWriter writer, XmlNamespace xmlNamespace, String? xmlElementName) → void
Writes to XML.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited