Skip to main content

HasChanged(AFDataPoint, Object) Method

Returns True if the AFDataPoint received any updates in the specified time period, regardless of whether the update changed the actual value.

Definition​

Namespace: GHost.GSharp.Analytics.AF
Assembly: GHost.GSharp.Analytics.AF (in GHost.GSharp.Analytics.AF.dll) Version: 1.2.0.0 (1.2.44.3)

C#

public static bool HasChanged(
AFDataPoint dataPoint,
Object time
)

VB

Public Shared Function HasChanged ( 
dataPoint As AFDataPoint,
time As Object
) As Boolean

Parameters​

  AFDataPoint
The AFDataPoint to evaluate for changes.
  Object
Reference time from which to evaluate.

Return Value​

Boolean
Returns True if the AFDataPoint has any event in the specified time period, otherwise returns False.

Example​

C#

bool hasChanged = HasChanged(afDataPoint, "t-4h");

Exceptions​

ArgumentExceptionException is thrown if time parameter cannot be converted to a valid DateTime.

See Also​

Reference​

FunctionLibrary Class
HasChanged Overload
GHost.GSharp.Analytics.AF Namespace