Compartir a través de


SensitiveData Property

  Microsoft Speech Technologies Homepage

Gets or sets whether the SemanticItem control contains sensitive data. Read/write.

Usage

ASP.NET markup: <speech:SemanticItem SensitiveData="..." />
Get value: Boolean = SemanticItem.SensitiveData;
Set value: SemanticItem.SensitiveData = Boolean;
Data type: System.Boolean
Required: No; Default: False

Remarks

Microsoft Speech Server logs the transactions that it performs and the data that it collects. Authors can prevent data such as credit card and Social Security numbers from appearing in logs by setting the SensitiveData property of the SemanticItem control to a value of True.

Example

The following example is adapted from the Microsoft Speech Application SDK Credit Card sample. In this example, credit card numbers are protected by the SensitiveData property on the siCCNumber SemanticItem control.

<form id="Form1" method="post" runat="server">
  ...
  <speech:SemanticMap ID="CCSemanticMap" runat="server">
    <speech:SemanticItem ID="siCCNumber" 
      TargetElement="tbCCNumber" TargetAttribute="value"
      SensitiveData="True">
    </speech:SemanticItem>
    <speech:SemanticItem ID="siCCMonth" runat="server"
      TargetElement="tbCCMonth" TargetAttribute="value">
    </speech:SemanticItem>
    <speech:SemanticItem ID="siCCYear" runat="server"
      TargetElement="tbCCYear" TargetAttribute="value">
    </speech:SemanticItem>
  </speech:SemanticMap>

  <speech:CreditCardNumber 
    ID="GetCreditCardNumber" 
    SemanticItem="siCCNumber"
    QuestionPrompt="Please enter your 16 digit discover card number" 
    AllowAmex="False"
    AllowDinersClub="False" 
    AllowDiscover="True" 
    AllowMasterCard="False"
    AllowVISA="False" 
    EnableViewState="False" 
    runat="server">
  </speech:CreditCardNumber>

  <speech:CreditCardDate 
    ID="GetCreditCardDate"     
    QuestionPrompt="What is the expiration date?" 
    MonthSemanticItem="siCCMonth"
    YearSemanticItem="siCCYear"
    runat="server">
  </speech:CreditCardDate>

  <asp:TextBox ID="tbCCNumber" runat="server"></asp:TextBox>
  <asp:TextBox ID="tbCCMonth"  runat="server"></asp:TextBox>
  <asp:TextBox ID="tbCCYear"   runat="server"></asp:TextBox>
  ...
</form>

See Also

SemanticItem Class | SemanticItem Constructor | SemanticItem Members | SemanticItem Properties | SemanticItem Methods | SemanticItem Events | SemanticItem Remarks | SemanticItem Client Object