SqlGeography.Z Property

 

Applies To: SQL Server 2016 Preview

Gets the Z (elevation) value of the instance. The semantics of the elevation value are user-defined.

Namespace:   Microsoft.SqlServer.Types
Assembly:  Microsoft.SqlServer.Types (in Microsoft.SqlServer.Types.dll)

Syntax

public SqlDouble Z {
    [SqlMethodAttribute(IsDeterministic = true, IsPrecise = true)]
    get;
}
public:
property SqlDouble Z {
    [SqlMethodAttribute(IsDeterministic = true, IsPrecise = true)]
    SqlDouble get();
}
member Z : SqlDouble with get
Public ReadOnly Property Z As SqlDouble

Property Value

Type: System.Data.SqlTypes.SqlDouble

A SqlDouble value that represents the elevation of the instance.

Remarks

The value of this property is null if the geography instance is not a point, as well as for any Point instance for which it is not set.

This property is read-only.

Z-coordinates are not used in any calculations made by the library and are not carried through any library calculations.

See Also

SqlGeography Class
Microsoft.SqlServer.Types Namespace

Return to top