HistorianTable.ForceTrigger Method

Force trigger to save historian
[ID("ForceTrigger", (int)e.ForceTrigger)] 
public virtual int ForceTrigger( 
   long timeStampUTCTicks = -1, 
   bool onlySync = false
   bool async = false
   bool onlyChanged = false 
)

Parameters

timeStampUTCTicks
long

Default is -1. If it is greater than -1 this tick will be used as sample's timestamp

onlySync
bool

Default is false. If true will execute only PI replication history configured

async
bool

Default is false. If true will execute async

onlyChanged
bool

Default is false. If true indicate that only save if changed. Valid only for Normalized tables

Return Value

int

0-Timeout waiting write samples 1-force command executed with success

.NET Framework

Supported in: 4.8

In this article

Definition