共用方式為


SqlGeography.STSymDifference 方法

Returns an object representing all points that are either in one SqlGeography instance or another SqlGeography instance, but not those points that lie in both instances.

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

語法

'宣告
<SqlMethodAttribute(IsDeterministic := True, IsPrecise := False)> _
Public Function STSymDifference ( _
    other As SqlGeography _
) As SqlGeography
'用途
Dim instance As SqlGeography 
Dim other As SqlGeography 
Dim returnValue As SqlGeography 

returnValue = instance.STSymDifference(other)
[SqlMethodAttribute(IsDeterministic = true, IsPrecise = false)]
public SqlGeography STSymDifference(
    SqlGeography other
)
[SqlMethodAttribute(IsDeterministic = true, IsPrecise = false)]
public:
SqlGeography^ STSymDifference(
    SqlGeography^ other
)
[<SqlMethodAttribute(IsDeterministic = true, IsPrecise = false)>]
member STSymDifference : 
        other:SqlGeography -> SqlGeography
public function STSymDifference(
    other : SqlGeography
) : SqlGeography

參數

傳回值

型別:Microsoft.SqlServer.Types.SqlGeography
A SqlGeography instance that contains all points unique to the calling SqlGeography and to the specified SqlGeography.

備註

This method always returns null if the spatial reference IDs (SRIDs) of the SqlGeography instances do not match.

請參閱

參考

SqlGeography 類別

Microsoft.SqlServer.Types 命名空間