Options
All
  • Public
  • Public/Protected
  • All
Menu

Class ComplexPropertyCollection<TComplexProperty>

Type parameters

Hierarchy

Index

Constructors

constructor

Properties

Namespace

Namespace: XmlNamespace

OnChange

____implementsInterface

____implementsInterface: string[]

____typeGenerics

____typeGenerics: string[]

____typeName

____typeName: string

Private addedItems

addedItems: TComplexProperty[]

Private items

items: TComplexProperty[]

Private modifiedItems

modifiedItems: TComplexProperty[]

Private removedItems

removedItems: TComplexProperty[]

Accessors

AddedItems

  • get AddedItems(): TComplexProperty[]
  • internal

    Gets the added items.

    Returns TComplexProperty[]

    The added items.

Count

  • get Count(): number
  • Gets the total number of properties in the collection.

    Returns number

Items

  • get Items(): TComplexProperty[]
  • internal

    Gets the items.

    Returns TComplexProperty[]

    The items.

ModifiedItems

  • get ModifiedItems(): TComplexProperty[]
  • internal

    Gets the modified items.

    Returns TComplexProperty[]

    The modified items

RemovedItems

  • get RemovedItems(): TComplexProperty[]
  • internal

    Gets the removed items.

    Returns TComplexProperty[]

    The removed items.

Methods

Changed

  • Changed(): void

ClearChangeLog

  • ClearChangeLog(): void
  • internal

    Clears the change log.

    Returns void

Contains

  • Contains(complexProperty: TComplexProperty): boolean
  • Determines whether a specific property is in the collection.

    Parameters

    • complexProperty: TComplexProperty

      The property to locate in the collection.

    Returns boolean

    True if the property was found in the collection, false otherwise.

CreateComplexProperty

  • CreateComplexProperty(xmlElementName: string): TComplexProperty
  • internal

    Creates the complex property.

    Parameters

    • xmlElementName: string

      Name of the XML element.

    Returns TComplexProperty

    Complex property instance.

CreateDefaultComplexProperty

  • CreateDefaultComplexProperty(): TComplexProperty
  • internal

    Creates the default complex property.

    Returns TComplexProperty

    Complex property instance.

CreateFromXmlJsObjectCollection

  • CreateFromXmlJsObjectCollection(jsObjectCollection: any, service: ExchangeService): void
  • internal

    Loads from XMLJsObject collection to create a new collection item.

    interface

    IJsonCollectionDeserializer

    Parameters

    • jsObjectCollection: any

      The json collection.

    • service: ExchangeService

      The service.

    Returns void

GetCollectionItemXmlElementName

  • GetCollectionItemXmlElementName(complexProperty: TComplexProperty): string
  • internal

    Gets the name of the collection item XML element.

    Parameters

    • complexProperty: TComplexProperty

      The complex property.

    Returns string

    XML element name.

IndexOf

  • IndexOf(complexProperty: TComplexProperty): number
  • Searches for a specific property and return its zero-based index within the collection.

    Parameters

    • complexProperty: TComplexProperty

      The property to locate in the collection.

    Returns number

    The zero-based index of the property within the collection.

Private InternalAdd

  • InternalAdd(complexProperty: TComplexProperty): void
  • InternalAdd(complexProperty: TComplexProperty, loading: boolean): void
  • internal

    Add complex property.

    Parameters

    • complexProperty: TComplexProperty

      The complex property.

    Returns void

  • Parameters

    • complexProperty: TComplexProperty

      The complex property.

    • loading: boolean

      If true, collection is being loaded.

    Returns void

InternalClear

  • InternalClear(): void
  • internal

    Clear collection.

    Returns void

InternalLoadFromXmlJsObject

  • InternalLoadFromXmlJsObject(jsObject: any, service: ExchangeService, readAction: function): void

InternalRemove

  • InternalRemove(complexProperty: TComplexProperty): boolean
  • internal

    Remove specified complex property.

    Parameters

    • complexProperty: TComplexProperty

      The complex property.

    Returns boolean

    True if the complex property was successfully removed from the collection, false otherwise.

InternalRemoveAt

  • InternalRemoveAt(index: number): void
  • internal

    Remote entry at index.

    Parameters

    • index: number

      The index.

    Returns void

InternalToJson

  • Parameters

    Returns any

InternalValidate

  • InternalValidate(): void

ItemChanged

  • internal

    Item changed.

    Parameters

    Returns void

LoadFromXmlJsObject

ReadAttributesFromXmlJsObject

ReadElementsFromXmlJsObject

  • ReadElementsFromXmlJsObject(jsonProperty: any, service: ExchangeService): void

ReadElementsFromXmlJsObjectToPatch

  • ReadElementsFromXmlJsObjectToPatch(jsonProperty: any, service: ExchangeService): void

ReadTextValueFromXmlJsObject

RemoveFromChangeLog

  • RemoveFromChangeLog(complexProperty: TComplexProperty): void
  • internal

    Removes from change log.

    Parameters

    • complexProperty: TComplexProperty

      The complex property.

    Returns void

SetFieldValue

  • SetFieldValue<T>(field: IRefParam<T>, value: T): void

ShouldWriteToRequest

  • ShouldWriteToRequest(): boolean
  • internal

    Determine whether we should write collection to XML or not.

    Returns boolean

    True if collection contains at least one element.

UpdateFromXmlJsObject

UpdateFromXmlJsObjectCollection

  • UpdateFromXmlJsObjectCollection(jsObjectCollection: any, service: ExchangeService): void
  • internal

    Loads from XMLJsObject collection to update collection Items.

    interface

    IJsonCollectionDeserializer

    Parameters

    • jsObjectCollection: any

      The XMLJsObject collection.

    • service: ExchangeService

      The service.

    Returns void

Validate

  • Validate(): void

WriteAttributesToXml

WriteDeleteUpdateToXml

  • internal

    Writes the deletion update to XML.

    Parameters

    Returns boolean

    True if property generated serialization.

WriteElementsToXml

WriteSetUpdateToXml

  • internal

    Writes the update to XML.

    Parameters

    Returns boolean

    True if property generated serialization.

WriteToXml

  • internal

    Writes to XML.

    Parameters

    • writer: EwsServiceXmlWriter

      The writer.

    • xmlElementName: string

      Name of the XML element.

    • Default value xmlNamespace: XmlNamespace = XmlNamespace.Types

      The XML namespace.

    Returns void

___thisIndexer

  • ___thisIndexer(index: number): TComplexProperty
  • Gets the property at the specified index.

    Parameters

    • index: number

      The zero-based index of the property to get.

    Returns TComplexProperty

    The property at the specified index.

Generated using TypeDoc