IppPrintDevice.FromPrinterName(String) 方法

定义

从打印机名称创建 IppPrintDevice 对象。

public:
 static IppPrintDevice ^ FromPrinterName(Platform::String ^ printerName);
 static IppPrintDevice FromPrinterName(winrt::hstring const& printerName);
public static IppPrintDevice FromPrinterName(string printerName);
function fromPrinterName(printerName)
Public Shared Function FromPrinterName (printerName As String) As IppPrintDevice

参数

printerName
String

Platform::String

winrt::hstring

打印机名称。

返回

IppPrintDevice 对象。

Windows 要求

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

适用于