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


ITimeRelationalOperator.Contains Method (ArcObjects .NET 10.5 SDK)
ArcObjects Library Reference (System)  

ITimeRelationalOperator.Contains Method

Indicates whether this time value contains the other time value.

[Visual Basic .NET]
Public Function Contains ( _
    ByVal otherTimeValue As ITimeValue _
) As Boolean
[C#]
public bool Contains (
    ITimeValue otherTimeValue
);
[C++]
HRESULT Contains(
  ITimeValue* otherTimeValue,
  VARIANT_BOOL* Contains
);
[C++]

Parameters otherTimeValue [in]
otherTimeValue is a parameter of type ITimeValue Contains [out, retval] Contains is a parameter of type VARIANT_BOOL

Product Availability

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

Description

This function returns true if the passed Time value is contained fully within the current time extent.  The start times can be equal, or the end times can be equal and the function will still result in TRUE.

See Also

ITimeRelationalOperator Interface