SemanticValue Construtores
Definição
Inicializa uma nova instância da classe SemanticValue.Initializes a new instance of the SemanticValue class.
Sobrecargas
| SemanticValue(Object) |
Inicializa uma nova instância da classe SemanticValue e especifica um valor semântico.Initializes a new instance of the SemanticValue class and specifies a semantic value. |
| SemanticValue(String, Object, Single) |
Inicializa uma nova instância da classe SemanticValue e especifica um valor semântico, um nome de chave e um nível de confiança.Initializes a new instance of the SemanticValue class and specifies a semantic value, a key name, and a confidence level. |
Comentários
Normalmente, você não criará SemanticValue objetos explicitamente, exceto para oferecer suporte à criação de gramáticas fortemente tipadas.Typically, you will not create SemanticValue objects explicitly, except to support the building of strongly-typed grammars.
SemanticValue(Object)
Inicializa uma nova instância da classe SemanticValue e especifica um valor semântico.Initializes a new instance of the SemanticValue class and specifies a semantic value.
public:
SemanticValue(System::Object ^ value);
public SemanticValue (object value);
new System.Speech.Recognition.SemanticValue : obj -> System.Speech.Recognition.SemanticValue
Public Sub New (value As Object)
Parâmetros
- value
- Object
As informações a serem armazenadas no objeto SemanticValue.The information to be stored in the SemanticValue object.
Comentários
Não há restrições sobre o tipo de value a ser armazenado.There are no restrictions on the type of value to be stored.
Um aplicativo pode ser recuperado value usando a Value propriedade em uma SemanticValue instância.An application can retrieve value by using the Value property on a SemanticValue instance.
O valor da Confidence propriedade para a SemanticValue instância será definido como-1.The value of the Confidence property for the SemanticValue instance will be set to -1.
Um SemanticValue construído com este método não pode ser referenciado pelo nome da chave.A SemanticValue constructed with this method cannot be referenced by key name.
Aplica-se a
SemanticValue(String, Object, Single)
Inicializa uma nova instância da classe SemanticValue e especifica um valor semântico, um nome de chave e um nível de confiança.Initializes a new instance of the SemanticValue class and specifies a semantic value, a key name, and a confidence level.
public:
SemanticValue(System::String ^ keyName, System::Object ^ value, float confidence);
public SemanticValue (string keyName, object value, float confidence);
new System.Speech.Recognition.SemanticValue : string * obj * single -> System.Speech.Recognition.SemanticValue
Public Sub New (keyName As String, value As Object, confidence As Single)
Parâmetros
- keyName
- String
Uma chave que pode ser usada para referenciar esta instância SemanticValue.A key that can be used to reference this SemanticValue instance.
- value
- Object
Um objeto que contém informações sejam armazenadas no objeto SemanticValue.An object containing information to be stored in the SemanticValue object.
- confidence
- Single
Um float que contém uma estimativa de certeza da análise semântica.A float containing an estimate of the certainty of semantic analysis.
Comentários
Não há restrições sobre o tipo de value a ser armazenado.There are no restrictions on the type of value to be stored.
Um aplicativo pode ser recuperado value usando a Value propriedade em uma SemanticValue instância.An application can retrieve value by using the Value property on a SemanticValue instance.
O confidence parâmetro (retornado pela Confidence propriedade em uma SemanticValue instância) deve estar entre 0,0 e 1,0.The confidence parameter (returned by the Confidence property on a SemanticValue instance), should be between 0.0 and 1.0.