Export (0) Print
Expand All
Expand Minimize

WarningCollection class

Bing

Provides access to a collection of Warning objects.

Constructor

Definition Description

WarningCollection()

Initializes a new instance of the WarningCollection class.

Methods

Name Definition Return Type Description

Add [C#,VB]

Add( Warning item)

None

Adds the given item to the end of the collection.

Append [C++]

Append( Warning ^ 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( Warning 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( Warning [] array, int arrayIndex)

None

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

First [C++]

First()

IIterator<Warning>

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

GetAt [C++]

GetAt(unsigned int index)

Warning

Returns the item in the collection at the specified index.

GetMany [C++]

GetMany(unsigned int startIndex, Array< Warning ^>^ 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<Warning>

Returns an immutable view of the collection.

IndexOf [C++]

IndexOf( Warning ^ 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( Warning 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, Warning item)

None

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

InsertAt [C++]

InsertAt(unsigned int index, Warning ^ item)

None

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

Remove [C#,VB]

Remove( Warning 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< Warning ^>^ 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, Warning ^ 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:
© 2014 Microsoft