Priority

ITcEvent

The property returns the priority of the event. The event priority is described through the enum TcEventPriority.

HRESULT Priorty([out, retval] long *pVal);

Parameters

pVal

[out, retval] Pointer to a long value that receives the event priority.

Return Values

S_OK

Function was successfully called

E_POINTER

pVal was no valid pointer.

Visual Basic sample code

' get the one and only event logger
Dim evtLogger As TCEVENTLOGGERLib.TcEventLog
Set evtLogger = New TCEVENTLOGGERLib.TcEventLog

' get the most recent active event
Dim evt As TcEvent
Set evt = evtLogger.GetLastEvent

' get the event priorty
Dim prio As TcEventPriority
prio = evt.Priority