PosPrinter.GetDefaultAsync Method

Definition

Gets the default paired or locally-connected printer.

public:
 static IAsyncOperation<PosPrinter ^> ^ GetDefaultAsync();
/// [Windows.Foundation.Metadata.RemoteAsync]
 static IAsyncOperation<PosPrinter> GetDefaultAsync();
[Windows.Foundation.Metadata.RemoteAsync]
public static IAsyncOperation<PosPrinter> GetDefaultAsync();
function getDefaultAsync()
Public Shared Function GetDefaultAsync () As IAsyncOperation(Of PosPrinter)

Returns

IAsyncOperation<PosPrinter>

The default locally-connected printer.

Attributes

Remarks

The app manifest must include the PointofService device capability. If the manifest omits this capability, this method returns null and no exception is generated.

Applies to