ArcObjects Library Reference (Geometry)  

ISpatialReference.SetMDomain Method

The measure domain extent.

[Visual Basic .NET]
Public Sub SetMDomain ( _
    ByVal inMMin As Double, _
    ByVal inMMax As Double _
)
[C#]
public void SetMDomain (
    double inMMin,
    double inMMax
);
[C++]
HRESULT SetMDomain(
  double inMMin,
  double inMMax
);
[C++]

Parameters

inMMin [in]   inMMin is a parameter of type double inMMax [in]   inMMax is a parameter of type double

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.

Description

An alternative method to the SetMFalseOriginAndUnits method. Sets the minimum and maximum allowed measure values for a spatial reference. Use SetMFalseOriginAndUnits to set explicitly the allowed measure precision value. The mUnits value is the inverse of the resolution of the measure data.

[C#]     //This code example shows how to set the M domain extent of a dataset.
    private void SetSpatialReferenceProperties(IFeatureClass featureClass)
    {
        IGeoDataset geoDataset = featureClass as IGeoDataset;
        //get access to SpatialReference through IGeoDataset
        ISpatialReference spatialReference = geoDataset.SpatialReference;
        //set the M domain extent for the dataset
        spatialReference.SetMDomain(0, 2147483645);
    }

See Also

ISpatialReference Interface