Upraviť

Zdieľať cez


ActivityCollection.Item[] Property

Definition

Gets an item Activity in the ICollection by name or index.

Overloads

Item[String]

Gets the activity in the ICollection based on the string which is a unique key.

Item[Int32]

Gets or sets the activity in the ICollection based on the index.

Item[String]

Gets the activity in the ICollection based on the string which is a unique key.

public:
 property System::Workflow::ComponentModel::Activity ^ default[System::String ^] { System::Workflow::ComponentModel::Activity ^ get(System::String ^ key); };
public System.Workflow.ComponentModel.Activity this[string key] { get; }
member this.Item(string) : System.Workflow.ComponentModel.Activity
Default Public ReadOnly Property Item(key As String) As Activity

Parameters

key
String

Unique identifier for activity in the ICollection.

Property Value

A member Activity of the ICollection; the key in the ICollection which was specified in the call.

Remarks

If there is no Activity in the ICollection with specified key, an exception is raised.

Applies to

Item[Int32]

Gets or sets the activity in the ICollection based on the index.

public:
 property System::Workflow::ComponentModel::Activity ^ default[int] { System::Workflow::ComponentModel::Activity ^ get(int index); void set(int index, System::Workflow::ComponentModel::Activity ^ value); };
public System.Workflow.ComponentModel.Activity this[int index] { get; set; }
member this.Item(int) : System.Workflow.ComponentModel.Activity with get, set
Default Public Property Item(index As Integer) As Activity

Parameters

index
Int32

Zero-based index into the ICollection.

Property Value

A member activity of the ICollection, whose index in the ICollection was specified in the call.

Implements

Exceptions

index is not a valid index in IList.

The property is set and the IList is read-only.

An attempt to set to an Object that is not an Activity.

Applies to