SrgsSemanticInterpretationTag 构造函数
定义
创建 SrgsSemanticInterpretationTag 类的实例。Creates an instance of the SrgsSemanticInterpretationTag class.
重载
| SrgsSemanticInterpretationTag() |
创建 SrgsSemanticInterpretationTag 类的实例。Creates an instance of the SrgsSemanticInterpretationTag class. |
| SrgsSemanticInterpretationTag(String) |
创建 SrgsSemanticInterpretationTag 类的实例,指定标记的脚本内容。Creates an instance of the SrgsSemanticInterpretationTag class, specifying the script contents of the tag. |
SrgsSemanticInterpretationTag()
创建 SrgsSemanticInterpretationTag 类的实例。Creates an instance of the SrgsSemanticInterpretationTag class.
public:
SrgsSemanticInterpretationTag();
public SrgsSemanticInterpretationTag ();
Public Sub New ()
注解
此构造函数创建一个语义转译标记,其 Script 属性包含空字符串。This constructor creates a semantic interpretation tag whose Script property contains an empty string.
适用于
SrgsSemanticInterpretationTag(String)
创建 SrgsSemanticInterpretationTag 类的实例,指定标记的脚本内容。Creates an instance of the SrgsSemanticInterpretationTag class, specifying the script contents of the tag.
public:
SrgsSemanticInterpretationTag(System::String ^ script);
public SrgsSemanticInterpretationTag (string script);
new System.Speech.Recognition.SrgsGrammar.SrgsSemanticInterpretationTag : string -> System.Speech.Recognition.SrgsGrammar.SrgsSemanticInterpretationTag
Public Sub New (script As String)
参数
- script
- String
包含标记的 ECMAScript 的字符串。A string that contains the ECMAScript for the tag.
例外
script 为 null。script is null.
注解
此构造函数创建一个语义转译标记,其 Script 属性设置为中的值 script 。This constructor creates a semantic interpretation tag whose Script property is set to the value in script.