PrintSchema
PrintSchema
PrintSchema
PrintSchema
Class
Definition
Provides APIs to access a 3D printer's capabilities and print tickets.
public : sealed class PrintSchema : IPrintSchemapublic sealed class PrintSchema : IPrintSchemaPublic NotInheritable Class PrintSchema Implements IPrintSchema// You can use this class in JavaScript.
- Attributes
| Device family |
Windows Desktop Extension SDK (introduced v10.0.10240.0)
Windows 10 (introduced v10.0.10586.0 - for Xbox, see UWP features that aren't yet supported on Xbox)
|
| API contract |
Windows.Devices.Printers.PrintersContract (introduced v1)
|
Remarks
For more information about the XML documents returned by the methods of this class, see the Print Schema Specification.
Methods
GetCapabilitiesAsync(IRandomAccessStreamWithContentType) GetCapabilitiesAsync(IRandomAccessStreamWithContentType) GetCapabilitiesAsync(IRandomAccessStreamWithContentType) GetCapabilitiesAsync(IRandomAccessStreamWithContentType)
Gets the 3D printer capabilities.
public : IAsyncOperation<IRandomAccessStreamWithContentType> GetCapabilitiesAsync(IRandomAccessStreamWithContentType constrainTicket)public IAsyncOperation<IRandomAccessStreamWithContentType> GetCapabilitiesAsync(IRandomAccessStreamWithContentType constrainTicket)Public Function GetCapabilitiesAsync(constrainTicket As IRandomAccessStreamWithContentType) As IAsyncOperation( Of IRandomAccessStreamWithContentType )// You can use this method in JavaScript.
- constrainTicket
- IRandomAccessStreamWithContentType IRandomAccessStreamWithContentType IRandomAccessStreamWithContentType IRandomAccessStreamWithContentType
The print ticket.
An XML PrintCapabilities document containing 3D printer capabilities.
GetDefaultPrintTicketAsync() GetDefaultPrintTicketAsync() GetDefaultPrintTicketAsync() GetDefaultPrintTicketAsync()
Gets the 3D printer's default print ticket.
public : IAsyncOperation<IRandomAccessStreamWithContentType> GetDefaultPrintTicketAsync()public IAsyncOperation<IRandomAccessStreamWithContentType> GetDefaultPrintTicketAsync()Public Function GetDefaultPrintTicketAsync() As IAsyncOperation( Of IRandomAccessStreamWithContentType )// You can use this method in JavaScript.
An XML PrintTicket document containing the 3D printer's default print ticket.
MergeAndValidateWithDefaultPrintTicketAsync(IRandomAccessStreamWithContentType) MergeAndValidateWithDefaultPrintTicketAsync(IRandomAccessStreamWithContentType) MergeAndValidateWithDefaultPrintTicketAsync(IRandomAccessStreamWithContentType) MergeAndValidateWithDefaultPrintTicketAsync(IRandomAccessStreamWithContentType)
Creates a new print ticket by merging the user’s selection with the default print ticket and validating that it will work for the device.
public : IAsyncOperation<IRandomAccessStreamWithContentType> MergeAndValidateWithDefaultPrintTicketAsync(IRandomAccessStreamWithContentType deltaTicket)public IAsyncOperation<IRandomAccessStreamWithContentType> MergeAndValidateWithDefaultPrintTicketAsync(IRandomAccessStreamWithContentType deltaTicket)Public Function MergeAndValidateWithDefaultPrintTicketAsync(deltaTicket As IRandomAccessStreamWithContentType) As IAsyncOperation( Of IRandomAccessStreamWithContentType )// You can use this method in JavaScript.
- deltaTicket
- IRandomAccessStreamWithContentType IRandomAccessStreamWithContentType IRandomAccessStreamWithContentType IRandomAccessStreamWithContentType
The delta print ticket, specifies the differences between the default print ticket and the user's selections.
An XML PrintTicket document containing the suggested print ticket.
Remarks
This method attempts to merge the user's selections with a default print ticket - even one for a different 3D printer. The returned print ticket is "suggested" because it may fail upon submission to the 3D printer. If that ticket fails, it indicates that the print ticket is invalid for the printer. If that ticket succeeds, it can be reused by the 3D designer in subsequent submissions.
- See Also