This document is archived and information here might be outdated.  Recommended version.


IPrimeMeridianEdit.Define Method (ArcObjects .NET 10.4 SDK)
ArcObjects Library Reference (Geometry)  

IPrimeMeridianEdit.Define Method

Defines the properties of the prime meridian.

[Visual Basic .NET]
Public Sub Define ( _
    [ByRef Name As Object], _
    [ByRef Alias As Object], _
    [ByRef Abbreviation As Object], _
    [ByRef Remarks As Object], _
    [ByRef Longitude As Object] _
)
[C#]
public void Define (
    ref object Name,
    ref object Alias,
    ref object Abbreviation,
    ref object Remarks,
    ref object Longitude
);
[C#]

Optional Values

Name   To indicate that this parameter is undefined, first define a variable object Missing=Type.Missing; then pass this in as ref Missing.
Alias   To indicate that this parameter is undefined, first define a variable object Missing=Type.Missing; then pass this in as ref Missing.
Abbreviation   To indicate that this parameter is undefined, first define a variable object Missing=Type.Missing; then pass this in as ref Missing.
Remarks   To indicate that this parameter is undefined, first define a variable object Missing=Type.Missing; then pass this in as ref Missing.
Longitude   To indicate that this parameter is undefined, first define a variable object Missing=Type.Missing; then pass this in as ref Missing.
[C++]
HRESULT Define(
  VARIANT* Name,
  VARIANT* Alias,
  VARIANT* Abbreviation,
  VARIANT* Remarks,
  VARIANT* Longitude
);
[C++]

Parameters Name [optional] Name is a parameter of type VARIANT
To indicate this parameter is undefined pass a reference to a VARIANT with type VT_ERROR and scode value of DISP_E_PARAMNOTFOUND. Alias [optional] Alias is a parameter of type VARIANT
To indicate this parameter is undefined pass a reference to a VARIANT with type VT_ERROR and scode value of DISP_E_PARAMNOTFOUND. Abbreviation [optional] Abbreviation is a parameter of type VARIANT
To indicate this parameter is undefined pass a reference to a VARIANT with type VT_ERROR and scode value of DISP_E_PARAMNOTFOUND. Remarks [optional] Remarks is a parameter of type VARIANT
To indicate this parameter is undefined pass a reference to a VARIANT with type VT_ERROR and scode value of DISP_E_PARAMNOTFOUND. Longitude [optional] Longitude is a parameter of type VARIANT
To indicate this parameter is undefined pass a reference to a VARIANT with type VT_ERROR and scode value of DISP_E_PARAMNOTFOUND.

Product Availability

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

Description

Use the Define method of IPrimeMeridianEdit to set the properties of a prime meridian. The longitude parameter is defined in degrees relative to Greenwich.

[C#]

    private void DefinePrimeMeridian()
    {
        //Query interface for DatumEdit
        IPrimeMeridianEdit primeMeridianEdit=new PrimeMeridianClass();
        //Define the properties for the prime meridian
        object name="Greenwich";
        object alias="Green";
        object abbreviation="Grnwch";
        object remarks="Greenwich is the prime meridian";
        object longitude=0;
        primeMeridianEdit.Define(ref name, ref alias, ref abbreviation, ref remarks, ref longitude);
    }

See Also

IPrimeMeridianEdit Interface