ClaimedMagneticStripeReader.EnableAsync Method

Definition

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;
    }

Applies to

See also