Condividi tramite


ClaimedMagneticStripeReader.EnableAsync Metodo

Definizione

Ottiene il lettore di striping magnetico in uno stato pronto per ricevere gli eventi di dati.

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

Restituisce

Al termine di questo metodo non viene restituito alcun oggetto o valore.

Attributi

Esempio

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

Si applica a

Vedi anche