ArcObjects Library Reference (System)  

ITimeOffsetOperator.AddYears Method

Adds the input amount of years.

[Visual Basic .NET]
Public Function AddYears ( _
    ByVal Value As Double, _
    ByVal preserveEndOfMonth As Boolean, _
    ByVal goForwardOnInvalidDate As Boolean _
) As Boolean
[C#]
public bool AddYears (
    double Value,
    bool preserveEndOfMonth,
    bool goForwardOnInvalidDate
);
[C++]
HRESULT AddYears(
  double Value,
  VARIANT_BOOL preserveEndOfMonth,
  VARIANT_BOOL goForwardOnInvalidDate,
  VARIANT_BOOL* dateWasAdjusted
);
[C++]

Parameters

Value [in]   Value is a parameter of type double preserveEndOfMonth [in]   preserveEndOfMonth is a parameter of type VARIANT_BOOL goForwardOnInvalidDate [in]   goForwardOnInvalidDate is a parameter of type VARIANT_BOOL dateWasAdjusted [out, retval]   dateWasAdjusted is a parameter of type VARIANT_BOOL

Product Availability

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

See Also

ITimeOffsetOperator Interface

.NET Samples

Make a custom time slider (Code Files: CustomTimeSliderButton) |