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 : IPrintTaskSourceRequestedArgspublic sealed class PrintTaskSourceRequestedArgs : IPrintTaskSourceRequestedArgsPublic NotInheritable Class PrintTaskSourceRequestedArgs Implements IPrintTaskSourceRequestedArgs// You can use this class in JavaScript.
- Attributes
| 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
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// You can use this property in JavaScript.
- Value
- DateTime DateTimeOffset DateTimeOffset DateTimeOffset
The deadline for a print task source request.
Methods
GetDeferral() 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// You can use this method in JavaScript.
Provides access to a Complete method.
- See Also
SetSource(IPrintDocumentSource) 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// You can use this method in JavaScript.
A pointer to the IPrintDocumentSource interface.
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