Print​Task​Source​Requested​Args Print​Task​Source​Requested​Args Print​Task​Source​Requested​Args 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 : IPrintTaskSourceRequestedArgspublic sealed class PrintTaskSourceRequestedArgs : IPrintTaskSourceRequestedArgsPublic NotInheritable Class PrintTaskSourceRequestedArgs Implements IPrintTaskSourceRequestedArgs
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

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

public : DateTime Deadline { get; }public DateTimeOffset Deadline { get; }Public ReadOnly Property Deadline As DateTimeOffset
Value
DateTime DateTimeOffset DateTimeOffset

The deadline for a print task source request.

Attributes

Methods

GetDeferral() GetDeferral() GetDeferral()

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

public : PrintTaskSourceRequestedDeferral GetDeferral()public PrintTaskSourceRequestedDeferral GetDeferral()Public Function GetDeferral() As PrintTaskSourceRequestedDeferral
Returns
Attributes
See Also

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

Informs the print task of the content to be printed.

public : void SetSource(IPrintDocumentSource source)public void SetSource(IPrintDocumentSource source)Public Function SetSource(source As IPrintDocumentSource) As void
Parameters
source
IPrintDocumentSource IPrintDocumentSource IPrintDocumentSource

A pointer to the IPrintDocumentSource interface.

Attributes

Remarks

Content source information for the print task can come from either HTML (via MSApp.GetHtmlPrintDocumentSource) or from XAML (via the XAML PrintDocument.DocumentSource). Or you can create your own method to provide content source information to the print task. For information about how to create your own method, see the Direct2D printing sample.

See Also