Share via


IppPrintDevice.FromPrinterName(String) Method

Definition

Creates an IppPrintDevice object from a printer name.

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

Parameters

printerName
String

Platform::String

winrt::hstring

A printer name.

Returns

An IppPrintDevice object.

Windows requirements

Device family
Windows 11 Insider Preview (introduced in 10.0.23504.0)
API contract
Windows.Foundation.UniversalApiContract (introduced in v15.0)

Applies to