共用方式為


SqlGeometry.STSymDifference 方法

Returns an object that represents all points that are either in one SqlGeometry instance or another SqlGeometry 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 SqlGeometry _
) As SqlGeometry
'用途
Dim instance As SqlGeometry 
Dim other As SqlGeometry 
Dim returnValue As SqlGeometry 

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

參數

傳回值

型別:Microsoft.SqlServer.Types.SqlGeometry
A SqlGeometry object that represents all points in the calling SqlGeometry and the specified SqlGeometry instances that are not present in both instances..

備註

This method always returns nullnull 參考 (在 Visual Basic 中為 Nothing) if the spatial reference IDs (SRIDs) of the SqlGeometry instances do not match.

請參閱

參考

SqlGeometry 類別

Microsoft.SqlServer.Types 命名空間