SqlGeography.Read Method (BinaryReader)
Applies To: SQL Server 2016 Preview
Reads a binary representation of a geography type into a SqlGeometry object.
Namespace: Microsoft.SqlServer.Types
Assembly: Microsoft.SqlServer.Types (in Microsoft.SqlServer.Types.dll)
Syntax
[SqlMethodAttribute(IsDeterministic = true, IsPrecise = true)]
public void Read(
BinaryReader r
)
public:
[SqlMethodAttribute(IsDeterministic = true, IsPrecise = true)]
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
<SqlMethodAttribute(IsDeterministic := True, IsPrecise := True)>
Public Sub Read (
r As BinaryReader
)
Parameters
r
Type: System.IO.BinaryReaderBinaryReader object that reads a binary representation of a geography type.
Implements
IBinarySerialize.Read(BinaryReader)
Remarks
This member is sealed.
This method will throw a FormatException if SRID value read by r is invalid.
See Also
SqlGeography Class
Microsoft.SqlServer.Types Namespace
Return to top