SmartCardEmulatorApduReceivedEventArgs.TryRespondAsync 方法

定义

重载

TryRespondAsync(IBuffer)

尝试响应 APDU。

TryRespondAsync(IBuffer, IReference<UInt32>)

尝试响应 APDU。

TryRespondAsync(IBuffer)

尝试响应 APDU。

public:
 virtual IAsyncOperation<bool> ^ TryRespondAsync(IBuffer ^ responseApdu) = TryRespondAsync;
/// [Windows.Foundation.Metadata.RemoteAsync]
IAsyncOperation<bool> TryRespondAsync(IBuffer const& responseApdu);
[Windows.Foundation.Metadata.RemoteAsync]
public IAsyncOperation<bool> TryRespondAsync(IBuffer responseApdu);
function tryRespondAsync(responseApdu)
Public Function TryRespondAsync (responseApdu As IBuffer) As IAsyncOperation(Of Boolean)

参数

responseApdu
IBuffer

包含响应的缓冲区。

返回

返回一个异步操作,该操作在操作完成指示时返回布尔值。 如果操作成功,布尔值将为 true,否则为 false。

属性

另请参阅

适用于

TryRespondAsync(IBuffer, IReference<UInt32>)

尝试响应 APDU。

public:
 virtual IAsyncOperation<bool> ^ TryRespondAsync(IBuffer ^ responseApdu, IReference<unsigned int> ^ nextState) = TryRespondAsync;
/// [Windows.Foundation.Metadata.Overload("TryRespondWithStateAsync")]
/// [Windows.Foundation.Metadata.RemoteAsync]
IAsyncOperation<bool> TryRespondAsync(IBuffer const& responseApdu, IReference<uint32_t> const& nextState);
[Windows.Foundation.Metadata.Overload("TryRespondWithStateAsync")]
[Windows.Foundation.Metadata.RemoteAsync]
public IAsyncOperation<bool> TryRespondAsync(IBuffer responseApdu, System.Nullable<uint> nextState);
function tryRespondAsync(responseApdu, nextState)
Public Function TryRespondAsync (responseApdu As IBuffer, nextState As Nullable(Of UInteger)) As IAsyncOperation(Of Boolean)

参数

responseApdu
IBuffer

包含响应的缓冲区。

nextState

IReference<UInt32>

Nullable<UInt32>

Windows.Foundation.IReference

IReference<uint32_t>

包含下一个状态的引用。

返回

返回一个异步操作,该操作在操作完成时返回布尔值。 如果操作成功完成,则布尔值为 true;否则为 false。

属性

Windows 要求

设备系列
Windows Mobile Extension SDK (在 10.0.10586.0 中引入)
API contract
Windows.Devices.SmartCards.SmartCardEmulatorContract (在 v2.0 中引入)

另请参阅

适用于