次の方法で共有


SqlGeography.STSymDifference メソッド

任意の SqlGeography インスタンスと別の SqlGeography インスタンスのいずれかに存在する地点すべてを表すオブジェクトを返します。ただし、両方のインスタンスに存在する地点は除外されます。

名前空間:  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
呼び出し元の SqlGeography と指定した SqlGeography のどちらかにのみ存在するすべての地点を含む SqlGeography です。

説明

SqlGeography インスタンスの SRID (spatial reference ID) が一致しない場合、このメソッドは常に null を返します。

関連項目

参照

SqlGeography クラス

Microsoft.SqlServer.Types 名前空間