CommandRule.Active Property
This content is no longer actively maintained. It is provided as is, for anyone who may still be using these technologies, with no warranties or claims of accuracy with regard to the most recent product version or service release.
Gets or sets whether the rule is active. Read/write.
Namespace: Microsoft.Speech.Web.UI
Assembly: Microsoft.Speech.Web (in microsoft.speech.web.dll)
Syntax
'Declaration
<NotifyParentPropertyAttribute(True)> _
<DefaultValueAttribute(True)> _
Public Property Active As Boolean
[NotifyParentPropertyAttribute(true)]
[DefaultValueAttribute(true)]
public bool Active { get; set; }
Remarks
The Active property can be used to activate and deactivate a CommandRule programmatically.
Example
In the following example code, the Active property is used with the Type property to disable the ReadCommandRule control.
<DataTableNavigator ... >
...
<CommandRules>
<speech:CommandRule Type="Read" Active="false" />
</CommandRules>
...
</DataTableNavigator>
In the following example code, the Type property is used with the Active property to disable the Read command and with the Src property to make Back a synonym for the Read command.
<DataTableNavigator ... >
...
<CommandRules>
<speech:CommandRule Type="Read" Active="false" />
<speech:CommandRule Type="Previous" Src="Grammars/back.grxml" />
</CommandRules>
...
</DataTableNavigator>
Thread Safety
All public static (Shared in Visual Basic) members of this type are thread-safe. Instance members are not guaranteed to be thread-safe.
Platforms
Development Platforms
Windows XP Professional with Service Pack 2 (SP2), Windows Server 2003, Windows Vista Ultimate Edition, Windows Vista Business Edition, Windows Vista Enterprise Edition
Target Platforms
Windows Server 2003
See Also
Reference
CommandRule Class
CommandRule Members
Microsoft.Speech.Web.UI Namespace