IppPrintDevice.FromId(String) 方法

定義

從印表機裝置識別碼建立 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

印表機裝置識別碼。

傳回

IppPrintDevice物件。

Windows 需求

裝置系列
Windows 11 Insider Preview (已於 10.0.23504.0 引進)
API contract
Windows.Foundation.UniversalApiContract (已於 v15.0 引進)

適用於