共用方式為


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 命名空間