共用方式為


SqlGeometry.Parse 方法

Returns a SqlGeometry instance from an Open Geospatial Consortium (OGC) Well-Known Text (WKT) representation.

命名空間:  Microsoft.SqlServer.Types
組件:  Microsoft.SqlServer.Types (在 Microsoft.SqlServer.Types.dll 中)

語法

'宣告
<SqlMethodAttribute(IsDeterministic := True, IsPrecise := False)> _
Public Shared Function Parse ( _
    s As SqlString _
) As SqlGeometry
'用途
Dim s As SqlString 
Dim returnValue As SqlGeometry 

returnValue = SqlGeometry.Parse(s)
[SqlMethodAttribute(IsDeterministic = true, IsPrecise = false)]
public static SqlGeometry Parse(
    SqlString s
)
[SqlMethodAttribute(IsDeterministic = true, IsPrecise = false)]
public:
static SqlGeometry^ Parse(
    SqlString s
)
[<SqlMethodAttribute(IsDeterministic = true, IsPrecise = false)>]
static member Parse : 
        s:SqlString -> SqlGeometry
public static function Parse(
    s : SqlString
) : SqlGeometry

參數

傳回值

型別:Microsoft.SqlServer.Types.SqlGeometry
A SqlGeometry instance interpreted from the provided WKT representation.Returns nullnull 參考 (在 Visual Basic 中為 Nothing) if s is nullnull 參考 (在 Visual Basic 中為 Nothing).

備註

Parse is equivalent to STGeomFromText, with the exception that it assumes a spatial reference ID (SRID) of 0 as a parameter.

The input may carry optional Z (elevation) and M (measure) values.

This member is static.

請參閱

參考

SqlGeometry 類別

Microsoft.SqlServer.Types 命名空間