| title | printTaskTrigger resource type |
|---|---|
| description | Determines the conditions under which a new printTask will be executed based on the associated printTaskDefinition. |
| author | braedenp-msft |
| ms.localizationpriority | medium |
| ms.subservice | universal-print |
| doc_type | resourcePageType |
| ms.date | 05/23/2024 |
Namespace: microsoft.graph
[!INCLUDE beta-disclaimer]
Determines the condition under which a new printTask will be triggered based on the associated printTaskDefinition.
For details about how to use this resource to add pull printing support to Universal Print, see Extending Universal Print to support pull printing.
| Method | Return Type | Description |
|---|---|---|
| List task triggers | printTaskTrigger collection | Get a list of printTaskTriggers associated with a particular printer. |
| Get task trigger | printTaskTrigger | Get a particular printTaskTrigger associated with a particular printer. |
| Property | Type | Description |
|---|---|---|
| id | String | The printTaskTrigger's identifier. Read-only. |
| event | printEvent | The Universal Print event that causes a new printTask to be triggered. Valid values are described in the following table. |
| Member | Value | Description |
|---|---|---|
| jobStarted | 0 | Represents an event that occurs when a new print job is started. |
| unknownFutureValue | 1 | Evolvable enumeration sentinel value. Don't use. |
| Relationship | Type | Description |
|---|---|---|
| definition | printTaskDefinition | An abstract definition that is used to create a printTask when triggered by a print event. Read-only. |
The following JSON representation shows the resource type.
{
"id": "String (identifier)",
"event": {"@odata.type": "microsoft.graph.printEvent"},
"definition": {"@odata.type": "microsoft.graph.printTaskDefinition"}
}