HistorianTable.ForceTrigger Method

Force trigger to save historian
<ID("ForceTrigger", (int)e.ForceTrigger)> _ 
Public Overridable Function ForceTrigger( _ 
Optional ByVal timeStampUTCTicks As Long = -1, _ 
Optional ByVal onlySync As Boolean = false, _ 
Optional ByVal async As Boolean = false, _ 
Optional ByVal onlyChanged As Boolean = false _ 
) As Integer
This language is not supported or no code example is available.
[ID("ForceTrigger", (int)e.ForceTrigger)] 
public virtual int ForceTrigger( 
long timeStampUTCTicks = -1, 
bool onlySync = false, 
bool async = false, 
bool onlyChanged = false 
)
This language is not supported or no code example is available.

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.6.2, 4.7

In this article

Definition