Click or drag to resize
SoFileSensor Class

Sensor that triggers a delegateeach time a file is changed.

Inheritance Hierarchy

Namespace: OIV.Inventor.Sensors
Assembly: OIV.Inventor (in OIV.Inventor.dll) Version: 10.12.3.0 (10.12.3.0)
Syntax
public class SoFileSensor : SoTimerSensor

The SoFileSensor type exposes the following members.

Constructors
  NameDescription
Public methodSoFileSensor

Default constructor.

Top
Methods
  NameDescription
Public methodAddFile

Add file to be monitored.

Public methodClearFiles

Stop monitoring all previously registered files.

Public methodEquals
Determines whether the specified Object is equal to the current Object.
(Inherited from Object.)
Public methodGetBaseTime

Gets the base time.

(Inherited from SoTimerSensor.)
Public methodGetFilename

Return changed file name.

Public methodGetHashCode
Overrides GetHashCode().
(Inherited from SoNetBase.)
Public methodGetInterval

Gets the interval.

(Inherited from SoTimerSensor.)
Public methodGetTriggerTime

Returns the time at which this sensor is scheduled to be triggered.

(Inherited from SoTimerQueueSensor.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodIsScheduled

Returns true if this sensor has been scheduled and is waiting in a sensor queue to be triggered.

(Inherited from SoSensor.)
Public methodRemoveFile

Remove file from monitored list.

Public methodSchedule
(Inherited from SoSensor.)
Public methodSetBaseTime

Sets the base time.

(Inherited from SoTimerSensor.)
Public methodSetInterval

Sets the interval.

(Inherited from SoTimerSensor.)
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Public methodUnschedule
(Inherited from SoSensor.)
Top
Properties
  NameDescription
Public propertyAction

(Inherited from SoSensor.)
Top
Remarks

File sensors trigger their delegatefunction when a watched file changes. Files are checked at the interval specified with OIV.Inventor.Sensors.SoTimerSensor.SetInterval(OIV.Inventor.SbTime).

See Also