Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

SqlGeography.M Property

 

Applies To: SQL Server 2016 Preview

Returns the M (measure) value of the geography instance.

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

public SqlDouble M {
	[SqlMethodAttribute(IsDeterministic = true, IsPrecise = true)]
	get;
}

Property Value

Type: System.Data.SqlTypes.SqlDouble

A SqlDouble value that specifies the measure value.

The semantics of the measure value are user-defined but generally describe the distance along a linestring. For example, the measure value could be used to keep track of mileposts along a road.

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.

M values are not used in any calculations made by the library and will not be carried through any library calculations.

Return to top
Show:
© 2015 Microsoft