Metodo EntityCommand.ExecuteDbDataReaderAsync
[Questa pagina è specifica della versione 6 di Entity Framework. La versione più recente è disponibile come pacchetto NuGet per "Entity Framework". Per ulteriori informazioni su Entity Framework, vedere la pagina msdn.com/data/ef.]
Esegue in modo asincrono il comando e restituisce un lettore dati per la lettura dei risultati
Spazio dei nomi: System.Data.Entity.Core.EntityClient
Assembly: EntityFramework (in EntityFramework.dll)
Sintassi
'Dichiarazione
<DebuggerStepThroughAttribute> _
Protected Overrides Function ExecuteDbDataReaderAsync ( _
behavior As CommandBehavior, _
cancellationToken As CancellationToken _
) As Task(Of DbDataReader)
'Utilizzo
Dim behavior As CommandBehavior
Dim cancellationToken As CancellationToken
Dim returnValue As Task(Of DbDataReader)
returnValue = Me.ExecuteDbDataReaderAsync(behavior, _
cancellationToken)
[DebuggerStepThroughAttribute]
protected override Task<DbDataReader> ExecuteDbDataReaderAsync(
CommandBehavior behavior,
CancellationToken cancellationToken
)
[DebuggerStepThroughAttribute]
protected:
virtual Task<DbDataReader^>^ ExecuteDbDataReaderAsync(
CommandBehavior behavior,
CancellationToken cancellationToken
) override
[<DebuggerStepThroughAttribute>]
abstract ExecuteDbDataReaderAsync :
behavior:CommandBehavior *
cancellationToken:CancellationToken -> Task<DbDataReader>
[<DebuggerStepThroughAttribute>]
override ExecuteDbDataReaderAsync :
behavior:CommandBehavior *
cancellationToken:CancellationToken -> Task<DbDataReader>
protected override function ExecuteDbDataReaderAsync(
behavior : CommandBehavior,
cancellationToken : CancellationToken
) : Task<DbDataReader>
Parametri
- behavior
Tipo: System.Data.CommandBehavior
Comportamento da utilizzare quando viene eseguito il comando
- cancellationToken
Tipo: System.Threading.CancellationToken
Token da monitorare per le richieste di annullamento
Valore restituito
Tipo: System.Threading.Tasks.Task<DbDataReader>
Attività che rappresenta l'operazione asincrona.Il risultato dell'attività contiene un oggetto DbDataReader.