IppPrintDevice.FromId(String) 方法

定义

从打印机设备 ID 创建 IppPrintDevice 对象。

public:
 static IppPrintDevice ^ FromId(Platform::String ^ deviceId);
 static IppPrintDevice FromId(winrt::hstring const& deviceId);
public static IppPrintDevice FromId(string deviceId);
function fromId(deviceId)
Public Shared Function FromId (deviceId As String) As IppPrintDevice

参数

deviceId
String

Platform::String

winrt::hstring

打印机设备 ID。

返回

IppPrintDevice 对象。

Windows 要求

设备系列
Windows 11 Insider Preview (在 10.0.23504.0 中引入)
API contract
Windows.Foundation.UniversalApiContract (在 v15.0 中引入)

适用于