<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://www.reliawiki.com/index.php?action=history&amp;feed=atom&amp;title=CScheduledTask.MaintenanceTriggers</id>
	<title>CScheduledTask.MaintenanceTriggers - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://www.reliawiki.com/index.php?action=history&amp;feed=atom&amp;title=CScheduledTask.MaintenanceTriggers"/>
	<link rel="alternate" type="text/html" href="https://www.reliawiki.com/index.php?title=CScheduledTask.MaintenanceTriggers&amp;action=history"/>
	<updated>2026-04-30T15:41:27Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.44.0</generator>
	<entry>
		<id>https://www.reliawiki.com/index.php?title=CScheduledTask.MaintenanceTriggers&amp;diff=64440&amp;oldid=prev</id>
		<title>Kate Racaza: Created page with &#039;{{Template:API}}{{Template:APIBreadcrumb|.cScheduledTask}}   &lt;onlyinclude&gt;Gets or sets the value of the maintenance trigger assigned to the task. &#039;&#039;&#039;Inte…&#039;</title>
		<link rel="alternate" type="text/html" href="https://www.reliawiki.com/index.php?title=CScheduledTask.MaintenanceTriggers&amp;diff=64440&amp;oldid=prev"/>
		<updated>2016-06-24T21:55:49Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;#039;{{Template:API}}{{Template:APIBreadcrumb|.&lt;a href=&quot;/index.php/CScheduledTask_Class&quot; title=&quot;CScheduledTask Class&quot;&gt;cScheduledTask&lt;/a&gt;}}   &amp;lt;onlyinclude&amp;gt;Gets or sets the value of the maintenance trigger assigned to the task. &amp;#039;&amp;#039;&amp;#039;Inte…&amp;#039;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;{{Template:API}}{{Template:APIBreadcrumb|.[[CScheduledTask_Class|cScheduledTask]]}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;onlyinclude&amp;gt;Gets or sets the value of the maintenance trigger assigned to the task. &amp;#039;&amp;#039;&amp;#039;Integer&amp;#039;&amp;#039;&amp;#039;. Can be any value from the [[TaskMaintenanceTriggerEnum Enumeration|TaskMaintenanceTriggerEnum]] enumeration or the sum of any combination of values from the enumeration (this allows you to get or set more than one trigger). Default value = 0 (no triggers)&amp;lt;/onlyinclude&amp;gt;&lt;br /&gt;
&lt;br /&gt;
For example, to trigger a task when a corrective maintenance (enum value = 2) or preventive maintenance (enum value = 4) starts, set the value of the &amp;lt;code&amp;gt;MainentanceTriggers&amp;lt;/code&amp;gt; property to 6 (i.e., 2 + 4 = 6).&lt;br /&gt;
&lt;br /&gt;
Alternatively, you can set a combination of triggers by using the logical &amp;lt;code&amp;gt;Or&amp;lt;/code&amp;gt; operator. For example, the following code sets two triggers:&lt;br /&gt;
&lt;br /&gt;
 &amp;#039;&amp;#039;&amp;#039;VB.NET&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
 &lt;br /&gt;
   {{APIPrefix|Dim}} t {{APIPrefix|As New}} cScheduledTask  &lt;br /&gt;
  {{APIComment|&amp;#039;Set the property}} &lt;br /&gt;
   t.MaintenanceTriggers = TaskMaintenanceTriggerEnum.BlockFails {{APIPrefix|Or}} TaskMaintenanceTriggerEnum.BlockRestored&lt;/div&gt;</summary>
		<author><name>Kate Racaza</name></author>
	</entry>
</feed>