Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All
Expand Minimize

ItineraryItemCollection class

Bing

Provides access to a collection of ItineraryItem objects.

Constructor

Definition Description

ItineraryItemCollection()

Initializes a new instance of the ItineraryItemCollection class.

Methods

Name Definition Return Type Description

Add [C#,VB]

Add( ItineraryItem item)

None

Adds the given item to the end of the collection.

Append [C++]

Append( ItineraryItem ^ item)

None

Appends the given item to the end of the collection.

Clear [C++,C#,VB]

Clear()

None

Removes all items from the collection.

Contains [C#,VB]

Contains( ItineraryItem item)

bool

Determines whether the specified item is in the collection. Returns true if the item is found in the collection or false if it is not found.

CopyTo [C#,VB]

CopyTo( ItineraryItem [] array, int arrayIndex)

None

Copies the items in the collection to an array, starting at the specified array index.

First [C++]

First()

IIterator<ItineraryItem>

Returns the iterator for iteration over the items in the collection.

GetAt [C++]

GetAt(unsigned int index)

ItineraryItem

Returns the item in the collection at the specified index.

GetMany [C++]

GetMany(unsigned int startIndex, Array< ItineraryItem ^>^ items)

unsigned int

Populates the items array with the items in the collection starting at the specified index. Returns the number of items put into the array.

GetView [C++]

GetView()

IVectorView<ItineraryItem>

Returns an immutable view of the collection.

IndexOf [C++]

IndexOf( ItineraryItem ^ item, unsigned int index)

bool

Populates index with the index of the specified item in the collection. Returns false if the item is not found in the collection.

IndexOf [C#,VB]

IndexOf( ItineraryItem item)

int

Returns the index of the specified item in the collection. Returns -1 if the item is not found.

Insert [C#,VB]

Insert(int index, ItineraryItem item)

None

Inserts the given item into the collection at the specified index.

InsertAt [C++]

InsertAt(unsigned int index, ItineraryItem ^ item)

None

Inserts the given item into the collection at the specified index.

Remove [C#,VB]

Remove( ItineraryItem item)

bool

Removes the first occurrence of the specified item from the collection. Returns true if the item was found and removed, or false if it was not.

RemoveAt [C++]

RemoveAt(unsigned int index)

None

Removes the item at the specified index from the collection.

RemoveAt [C#,VB]

RemoveAt(int index)

None

Removes the item at the specified index from the collection.

RemoveAtEnd [C++]

RemoveAtEnd()

None

Removes the last item in the collection.

ReplaceAll [C++]

ReplaceAll(Array< ItineraryItem ^>^ items)

None

Initially clears the collection, and then inserts the elements in the given array as new collection items.

SetAt [C++]

SetAt(unsigned int index, ItineraryItem ^ item)

None

Sets the item at the specified index in the collection to the given item.

Properties

Name Type Description

Count [C#,VB]

int

Gets the number of items in the collection.

IsReadOnly [C#,VB]

bool

Gets a bool indicating whether the collection is read-only.

Item [C#,VB]

int

Gets or sets the item at the specified index.

Size [C++]

unsigned int

Gets the number of items in the collection.

Show:
© 2015 Microsoft