TaskListCollection.Item[Int32] 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 or sets array access semantics for the task list collection.
public:
property Microsoft::Web::Management::Client::TaskList ^ default[int] { Microsoft::Web::Management::Client::TaskList ^ get(int index); void set(int index, Microsoft::Web::Management::Client::TaskList ^ value); };
public Microsoft.Web.Management.Client.TaskList this[int index] { get; set; }
member this.Item(int) : Microsoft.Web.Management.Client.TaskList with get, set
Default Public Property Item(index As Integer) As TaskList
Parameters
- index
- Int32
The index of the target item.
Property Value
The TaskList object at the specified index location.
Examples
The following example creates a new TaskListCollection object and displays the name and modified state of each item in the collection.
public void tTask() {
TaskListCollection tlc = new TaskListCollection(Tasks);
Trace.WriteLine("preferred listing of tasks from TaskListCollection");
foreach (TaskList tl in tlc)
Trace.WriteLine(tl.ToString() + " IsDirty " +
tl.IsDirty);
Trace.WriteLine("\n Get Item approach");
for (int i = 0; i < tlc.Count; i++)
Trace.WriteLine(tlc[i].ToString() + " IsDirty " +
tlc[i].IsDirty);
}