Universal Windows Service Class Library

IntervalTrigger.Configure Method (XmlElement)

Configures the trigger from a xml element.

public override void Configure(
   XmlElement element
);

Parameters

element
Xml element containing specific trigger data.

Implements

ITrigger.Configure

Remarks

This function configures the trigger from given xml element. Must be implemented by each implementation of the base class.

An example of xml configuration is specified in the example section. All sections which will be found (also more than one time) will be summarized to time interval.

Exceptions

Exception TypeCondition
ArgumentNullExceptionThrown if no element was given.
ExceptionMeans that the configuration is invalid. For more information see the exception message.

Example

<trigger type="uws.Triggers.IntervalTrigger"> <days value="1"/> <hours value="1"/> <minutes value="1"/> <seconds value="30"/> <milliseconds value="500"/> </trigger>

See Also

IntervalTrigger Class | uws.Triggers Namespace | IntervalTrigger.Configure Overload List | ITrigger | Trigger