SqlGeography.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.

请参阅

参考

SqlGeography 类

Microsoft.SqlServer.Types 命名空间