Sprache

DbSpatialDataReader.GetGeographyAsync(Int32, CancellationToken) Methode

Definition

Liest asynchron eine Instanz der DbGeography Spalte an der angegebenen Spalten-Ordnungszahl vor.

[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification="Exception provided in the returned task.")]
public virtual System.Threading.Tasks.Task<System.Data.Entity.Spatial.DbGeography> GetGeographyAsync(int ordinal, System.Threading.CancellationToken cancellationToken);
abstract member GetGeographyAsync : int * System.Threading.CancellationToken -> System.Threading.Tasks.Task<System.Data.Entity.Spatial.DbGeography>
override this.GetGeographyAsync : int * System.Threading.CancellationToken -> System.Threading.Tasks.Task<System.Data.Entity.Spatial.DbGeography>

Parameter

ordinal
Int32

Die Ordnungszahl der Spalte, die den Geografiewert enthält.

cancellationToken
CancellationToken

A CancellationToken , um zu beobachten, während sie auf den Abschluss der Aufgabe warten.

Gibt zurück

Eine Aufgabe, die den asynchronen Vorgang darstellt. Das Vorgangsergebnis enthält die Instanz des DbGeography angegebenen Spaltenwerts.

Attribute

Hinweise

Anbieter sollten mit einer geeigneten Implementierung außer Kraft setzen. Die Standardimplementierung ruft die synchrone GetGeography(Int32) Methode auf und gibt eine abgeschlossene Aufgabe zurück, die den aufrufenden Thread blockiert.

Gilt für: