Table of Contents

Method GetPrinterNames

Namespace
Alternet.UI
Assembly
Alternet.UI.Common.dll

GetPrinterNames()

Retrieves a read-only list of printer names available on the system.

public static IReadOnlyList<string>? GetPrinterNames()

Returns

IReadOnlyList<string>

A read-only list of printer names if available; otherwise, null.

Remarks

If called on a non-Windows platform or if an error occurs during retrieval, the method returns null.