ClaimedPosPrinter.RetainDeviceAsync 方法

定义

异步保留服务点打印机上的声明,通常是为了响应 ReleaseDeviceRequested 事件。

public:
 virtual IAsyncOperation<bool> ^ RetainDeviceAsync() = RetainDeviceAsync;
/// [Windows.Foundation.Metadata.RemoteAsync]
IAsyncOperation<bool> RetainDeviceAsync();
[Windows.Foundation.Metadata.RemoteAsync]
public IAsyncOperation<bool> RetainDeviceAsync();
function retainDeviceAsync()
Public Function RetainDeviceAsync () As IAsyncOperation(Of Boolean)

返回

如果打印机已成功保留,则为 True;否则为 false。

属性

适用于

另请参阅