SmartCardEmulatorApduReceivedEventArgs.TryRespondAsync Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
TryRespondAsync(IBuffer) |
Attempts to respond to an APDU. |
TryRespondAsync(IBuffer, IReference<UInt32>) |
Attempts to respond to an APDU. |
TryRespondAsync(IBuffer)
Attempts to respond to an 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)
Parameters
- responseApdu
- IBuffer
A buffer containing the response.
Returns
Returns an asynchronous operation that returns a boolean when the operation completes indicating. The boolean will be true if the operation was successful and false otherwise.
- Attributes
See also
- TryRespondAsync(IBuffer, IReference<UInt32>)
- Create an NFC Smart Card app (applies to Windows 10 Mobile only)
Applies to
TryRespondAsync(IBuffer, IReference<UInt32>)
Attempts to respond to an 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)
Parameters
- responseApdu
- IBuffer
A buffer containing the response.
- nextState
-
Windows.Foundation.IReference<unsigned int>
IReference<uint32_t>
A reference containing the next state.
Returns
Returns an asynchronous operation that returns a boolean when the operation completes. The boolean is true if the operation completed successfully and false otherwise.
- Attributes
Windows requirements
Device family |
Windows Mobile Extension SDK (introduced in 10.0.10586.0)
|
API contract |
Windows.Devices.SmartCards.SmartCardEmulatorContract (introduced in v2.0)
|