ActivityCollection.Item[] Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.
Applies to
.NET