Universal Windows Service Class Library

WeeklyTrigger.Configure Method (XmlElement)

Configures the trigger from an 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. The weekday tag must have a value between 1 and 7. 7 is the value for sunday. 3 for example means wednesday.

Following time configurations are possible:

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.WeeklyTrigger"> <weekday value="3"/> <time value="11:03:10"/> </trigger>

See Also

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