次の方法で共有


SqlGeometry.Point メソッド

X 値、Y 値、および SRID (spatial reference identifier) から、Point インスタンスを表す SqlGeometry インスタンスを構築します。

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

構文

'宣言
<SqlMethodAttribute(IsDeterministic := True, IsPrecise := False)> _
Public Shared Function Point ( _
    x As Double, _
    y As Double, _
    srid As Integer _
) As SqlGeometry
'使用
Dim x As Double 
Dim y As Double 
Dim srid As Integer 
Dim returnValue As SqlGeometry 

returnValue = SqlGeometry.Point(x, y, srid)
[SqlMethodAttribute(IsDeterministic = true, IsPrecise = false)]
public static SqlGeometry Point(
    double x,
    double y,
    int srid
)
[SqlMethodAttribute(IsDeterministic = true, IsPrecise = false)]
public:
static SqlGeometry^ Point(
    double x, 
    double y, 
    int srid
)
[<SqlMethodAttribute(IsDeterministic = true, IsPrecise = false)>]
static member Point : 
        x:float * 
        y:float * 
        srid:int -> SqlGeometry
public static function Point(
    x : double, 
    y : double, 
    srid : int
) : SqlGeometry

パラメーター

  • x
    型: System.Double
    生成される Point の X 座標を表す double です。
  • y
    型: System.Double
    生成される Point の Y 座標を表す double です。
  • srid
    型: System.Int32
    返される SqlGeometry インスタンスの SRID (spatial reference ID) を表す int 式です。

戻り値

型: Microsoft.SqlServer.Types.SqlGeometry
ユークリッド座標系の点を表す SqlGeometry インスタンスです。

説明

このメンバーは static です。

関連項目

参照

SqlGeometry クラス

Microsoft.SqlServer.Types 名前空間