次の方法で共有


STDifference メソッド

別の SqlGeography インスタンス内に含まれていない、任意の SqlGeography インスタンスの地点を表すオブジェクトを返します。

名前空間:  Microsoft.SqlServer.Types
アセンブリ:  Microsoft.SqlServer.Types (Microsoft.SqlServer.Types.dll)

構文

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

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

パラメーター

戻り値

型: Microsoft.SqlServer.Types. . :: . .SqlGeography
呼び出し元のインスタンスだけに含まれるすべての地点を表す SqlGeography 値です。

説明

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