共用方式為


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。

屬性

適用於

另請參閱