Поделиться через


Метод SqlGeography.Read

Reads a binary representation of a geography type into a SqlGeometry object.

Пространство имен:  Microsoft.SqlServer.Types
Сборка:  Microsoft.SqlServer.Types (в Microsoft.SqlServer.Types.dll)

Синтаксис

'Декларация
<SqlMethodAttribute(IsDeterministic := True, IsPrecise := True)> _
Public Sub Read ( _
    r As BinaryReader _
)
'Применение
Dim instance As SqlGeography 
Dim r As BinaryReader

instance.Read(r)
[SqlMethodAttribute(IsDeterministic = true, IsPrecise = true)]
public void Read(
    BinaryReader r
)
[SqlMethodAttribute(IsDeterministic = true, IsPrecise = true)]
public:
virtual void Read(
    BinaryReader^ r
) sealed
[<SqlMethodAttribute(IsDeterministic = true, IsPrecise = true)>]
abstract Read : 
        r:BinaryReader -> unit 
[<SqlMethodAttribute(IsDeterministic = true, IsPrecise = true)>]
override Read : 
        r:BinaryReader -> unit
public final function Read(
    r : BinaryReader
)

Параметры

  • r
    Тип: System.IO.BinaryReader
    BinaryReader object that reads a binary representation of a geography type.

Реализует

IBinarySerialize.Read(BinaryReader)

Замечания

This member is sealed.

This method will throw a FormatException if SRID value read by r is invalid.

См. также

Справочник

SqlGeography Класс

Пространство имен Microsoft.SqlServer.Types