This document is archived and information here might be outdated. Recommended version. |
ArcObjects Help for .NET developers > ArcObjects namespaces > Geometry > ESRI.ArcGIS.Geometry > Interfaces > IV > IVerticalDatumEdit Interface > IVerticalDatumEdit.Define Method (ArcObjects .NET 10.5 SDK) |
Defines the properties of a vertical datum.
[Visual Basic .NET] Public Sub Define ( _ [ByRef Name As Object], _ [ByRef Alias As Object], _ [ByRef Abbreviation As Object], _ [ByRef Remarks As Object] _ )
[C#] public void Define ( ref object Name, ref object Alias, ref object Abbreviation, ref object Remarks );
Optional Values
[C++]
HRESULT Define(
VARIANT* Name,
VARIANT* Alias,
VARIANT* Abbreviation,
VARIANT* Remarks
);
[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.
private IVerticalDatum DefineVerticalDatum()
{
//Define a new vertical datum Dim pVerticalDatum As IVerticalDatum
IVerticalDatumEdit verticalDatumEdit=new VerticalDatumClass();
object name="New VDatum";
object alias="VDatum alias";
object abbreviation="abbr";
object remarks="Test for options";
verticalDatumEdit.Define(ref name,
ref alias,
ref abbreviation,
ref remarks);
IVerticalDatum verticalDatum=verticalDatumEdit as IVerticalDatum;
return verticalDatum;
}