BaseCollection<T>.Item Property

Gets or sets an element in the collection at a specific position.

Namespace:  Microsoft.Rtc.Workflow.Utilities
Assembly:  Microsoft.Rtc.Workflow (in Microsoft.Rtc.Workflow.dll)

Syntax

'Declaration
Public Default Property Item ( _
    index As Integer _
) As T
    Get
    Set
'Usage
Dim instance As BaseCollection
Dim index As Integer
Dim value As T

value = instance(index)

instance(index) = value
public T this[
    int index
] { get; set; }

Parameters

Property Value

Type: T

Implements

IList<T>.Item[Int32]

Exceptions

Exception Condition
ArgumentNullException

Thrown if null is set for a value.

InvalidOperationException

Thrown if the item is already in the collection.

See Also

Reference

BaseCollection<T> Class

BaseCollection<T> Members

Microsoft.Rtc.Workflow.Utilities Namespace