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 引進)

適用於