Bewerken

Delen via


Tasks Interface

Definition

A collection of Task objects that represents all the tasks currently running on the system.

public interface class Tasks : System::Collections::IEnumerable
[System.Runtime.InteropServices.Guid("00020983-0000-0000-C000-000000000046")]
public interface Tasks : System.Collections.IEnumerable
type Tasks = interface
    interface IEnumerable
Public Interface Tasks
Implements IEnumerable
Attributes
Implements

Remarks

Use the Tasks property to return the Tasks collection.

Use Tasks(index), where index is the application name or the index number, to return a single Task object.

Properties

Application

Returns a Application object that represents the Microsoft Word application.

Count

Returns the number of items in the specified collection.

Creator

Returns a 32-bit integer that indicates the application in which the specified object was created.

Item[Object]

Returns an individual object in a collection.

Parent

Returns an object that represents the parent object of the specified object.

Methods

Exists(String)

Determines whether the specified task exists. Returns True if the task exists.

ExitWindows()

Closes all open applications, quits Microsoft Windows, and logs the current user off.

GetEnumerator()

Applies to