PrintTaskSourceRequestedArgs PrintTaskSourceRequestedArgs PrintTaskSourceRequestedArgs PrintTaskSourceRequestedArgs PrintTaskSourceRequestedArgs Class

Definition

Arguments associated with the PrintTaskSourceRequestedHandler delegate. Provides a method for handing the content to be printed to the Print Task.

public : sealed class PrintTaskSourceRequestedArgs
struct winrt::Windows::Graphics::Printing::PrintTaskSourceRequestedArgs
public sealed class PrintTaskSourceRequestedArgs
Public NotInheritable Class PrintTaskSourceRequestedArgs
// This class does not provide a public constructor.
Attributes

Windows 10 requirements

Device family
Windows 10 (introduced v10.0.10240.0 - for Xbox, see UWP features that aren't yet supported on Xbox)
API contract
Windows.Foundation.UniversalApiContract (introduced v1)

Remarks

PrintTaskSourceRequestedArgs can, for example, be used to retrieve the deadline for a print task. Here is a JavaScript code snippet that retrieves a print task deadline:

// Get a value for the DateTime object for a print task
var deadline = Windows.Graphics.Printing.PrintTaskSourceRequestedArgs.deadline;

Properties

Deadline Deadline Deadline Deadline Deadline

Gets the DateTime object that indicates the deadline for a print task source request.

Methods

GetDeferral() GetDeferral() GetDeferral() GetDeferral() GetDeferral()

Gets a PrintTaskSourceRequestedDeferral object that provides access to a Complete method. This method indicates then the deferral is over.

SetSource(IPrintDocumentSource) SetSource(IPrintDocumentSource) SetSource(IPrintDocumentSource) SetSource(IPrintDocumentSource) SetSource(IPrintDocumentSource)

Informs the print task of the content to be printed.