ModuleDialogPage.Tasks Property

Definition

Gets the collection of tasks for the page.

protected:
 virtual property Microsoft::Web::Management::Client::TaskListCollection ^ Tasks { Microsoft::Web::Management::Client::TaskListCollection ^ get(); };
protected override Microsoft.Web.Management.Client.TaskListCollection Tasks { get; }
member this.Tasks : Microsoft.Web.Management.Client.TaskListCollection
Protected Overrides ReadOnly Property Tasks As TaskListCollection

Property Value

The TaskListCollection object for the page.

Examples

The following example overrides the Tasks property.

protected override TaskListCollection Tasks {
    get {
        if (_taskList == null) {
            _taskList = new PageTaskList(this);
        }

        TaskListCollection taskList = base.Tasks;
        taskList.Add(_taskList);

        return taskList;
    }
} 

Applies to