Bagikan melalui


IppPrintDevice.FromPrinterName(String) Metode

Definisi

Membuat objek IppPrintDevice dari nama printer.

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

Parameter

printerName
String

Platform::String

winrt::hstring

Nama printer.

Mengembalikan

Objek IppPrintDevice .

Persyaratan Windows

Rangkaian perangkat
Windows 11 Insider Preview (diperkenalkan dalam 10.0.23504.0)
API contract
Windows.Foundation.UniversalApiContract (diperkenalkan dalam v15.0)

Berlaku untuk