Partilhar via


CompareValidator Property

  Microsoft Speech Technologies Homepage

Gets or sets a CompareValidatorControlSettings control that sets property values of CompareValidator controls that reference it. Read/write.

Usage

Get value: CompareValidatorControlSettings = SpeechControlSettingsItem.CompareValidator;
Set value: SpeechControlSettingsItem.CompareValidator = CompareValidatorControlSettings;
Data type: CompareValidatorControlSettings
Required: No

Remarks

The CompareValidatorControlSettings control can set the following properties of the CompareValidator control:

Example

<form id="Form1" method="post" runat="server">
  ...
  <speech:SpeechControlSettings ID="AllSettings" runat="server">
    <Items>
      <speech:SpeechControlSettingsItem ID="Settings1" runat="server">
        ...
        <CompareValidator 
          ValidationEvent="onconfirmed"
          Operator="Equal" 
          Type="Integer" 
          InvalidateBoth="False">
          <Prompt ... >
          </Prompt>
        </CompareValidator>
        ...
      </speech:SpeechControlSettingsItem>
    </Items>
  </speech:SpeechControlSettings>
  ...
  <speech:CompareValidator Settings="Settings1" runat="server">
    <!-- CompareValidator contents --!>
  </speech:CompareValidator>
  ...
</form>

See Also

SpeechControlSettingsItem Class | SpeechControlSettingsItem Constructor | SpeechControlSettingsItem Members | SpeechControlSettingsItem Properties | SpeechControlSettingsItem Methods | SpeechControlSettingsItem Events | SpeechControlSettingsItem Remarks