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
- index
Type: System.Int32
Property Value
Type: T
Implements
Exceptions
Exception | Condition |
---|---|
ArgumentNullException | Thrown if null is set for a value. |
InvalidOperationException | Thrown if the item is already in the collection. |