PrintSchema 类

定义

提供用于访问 3D 打印机功能和打印票证的 API。

public ref class PrintSchema sealed
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Devices.Printers.PrintersContract, 65536)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
/// [Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
class PrintSchema final
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Devices.Printers.PrintersContract), 65536)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
[Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
public sealed class PrintSchema
Public NotInheritable Class PrintSchema
继承
Object Platform::Object IInspectable PrintSchema
属性

Windows 要求

设备系列
Windows Desktop Extension SDK (在 10.0.10240.0 中引入)
Windows 10 (在 10.0.10586.0 - for Xbox, see UWP features that aren't yet supported on Xbox 中引入)
API contract
Windows.Devices.Printers.PrintersContract (在 v1.0 中引入)

注解

有关此类方法返回的 XML 文档的详细信息,请参阅 打印架构规范

方法

GetCapabilitiesAsync(IRandomAccessStreamWithContentType)

获取 3D 打印机功能。

GetDefaultPrintTicketAsync()

获取 3D 打印机的默认打印票证。

MergeAndValidateWithDefaultPrintTicketAsync(IRandomAccessStreamWithContentType)

通过将用户选择与默认打印票证合并并验证它是否适用于设备,创建新的打印票证。

适用于