다음을 통해 공유


STDifference 메서드

Returns an object representing the points from one SqlGeography instance that do not lie within another SqlGeography instance.

네임스페이스:  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
A SqlGeography value that represents all of the points that are unique to the calling instance.

주의

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