共用方式為


STUnion 方法

Returns an object that represents the union of a SqlGeometry instance with another SqlGeometry instance.

命名空間:  Microsoft.SqlServer.Types
組件:  Microsoft.SqlServer.Types (在 Microsoft.SqlServer.Types.dll 中)

語法

'宣告
<SqlMethodAttribute(IsDeterministic := True, IsPrecise := False)> _
Public Function STUnion ( _
    other As SqlGeometry _
) As SqlGeometry
'用途
Dim instance As SqlGeometry
Dim other As SqlGeometry
Dim returnValue As SqlGeometry

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

參數

傳回值

型別:Microsoft.SqlServer.Types. . :: . .SqlGeometry
A SqlGeometry object that represents the union of the calling SqlGeometry and the specified SqlGeometry.

備註

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