PrintSchema 类
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
提供用于访问 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
- 继承
- 属性
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) |
通过将用户选择与默认打印票证合并并验证它是否适用于设备,创建新的打印票证。 |