ClaimedMagneticStripeReader.EnableAsync 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.
Gets the magnetic stripe reader into a ready state to receive data events.
public:
virtual IAsyncAction ^ EnableAsync() = EnableAsync;
/// [Windows.Foundation.Metadata.RemoteAsync]
IAsyncAction EnableAsync();
[Windows.Foundation.Metadata.RemoteAsync]
public IAsyncAction EnableAsync();
function enableAsync()
Public Function EnableAsync () As IAsyncAction
Returns
No object or value is returned by this method when it completes.
- Attributes
Examples
// Enables the magnetic stripe reader to receive data.
task<void> Scenario1::EnableReader()
{
return create_task(_claimedReader->EnableAsync()).then([this](void)
{
// UpdateReaderStatusTextBlock("Magnetic stripe reader enabled successfully.");
});
}
// Enables the magnetic stripe reader to receive data
private async Task<bool> EnableReader()
{
await _claimedReader.EnableAsync();
return true;
}