SrgsRuleRef Class
Represents the grammar element that specifies the rule to reference.
Namespace: Microsoft.Speech.Recognition.SrgsGrammar
Assembly: Microsoft.Speech (in microsoft.speech.dll)
Syntax
'Declaration
<SerializableAttribute> _
<DebuggerDisplayAttribute("{DebuggerDisplayString()}")> _
<ImmutableObjectAttribute(True)> _
Public NotInheritable Class SrgsRuleRef
Inherits SrgsElement
[SerializableAttribute]
[DebuggerDisplayAttribute("{DebuggerDisplayString()}")]
[ImmutableObjectAttribute(true)]
public sealed class SrgsRuleRef : SrgsElement
[SerializableAttribute]
[DebuggerDisplayAttribute(L"{DebuggerDisplayString()}")]
[ImmutableObjectAttribute(true)]
public ref class SrgsRuleRef sealed : public SrgsElement
/** @attribute SerializableAttribute() */
/** @attribute DebuggerDisplayAttribute("{DebuggerDisplayString()}") */
/** @attribute ImmutableObjectAttribute(true) */
public final class SrgsRuleRef extends SrgsElement
SerializableAttribute
DebuggerDisplayAttribute("{DebuggerDisplayString()}")
ImmutableObjectAttribute(true)
public final class SrgsRuleRef extends SrgsElement
Remarks
The SrgsRuleRef class is particularly useful when you want to reuse a SrgsRule element whose contents have already been defined. By reusing existing rules, you can build complex grammars more quickly.
You can use one of the SrgsRuleRef constructors or the Uri property to reference a SrgsRuleScope**.Public** or SrgsRuleScope.Private rule in the same grammar or a Public rule in an external grammar.
This class represents the World Wide Web Consortium (W3C) Speech Recognition Grammar Specification (SRGS) ruleref element.
Inheritance Hierarchy
System.Object
System.MarshalByRefObject
Microsoft.Speech.Recognition.SrgsGrammar.SrgsElement
Microsoft.Speech.Recognition.SrgsGrammar.SrgsRuleRef
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
See Also
Reference
SrgsRuleRef Members
Microsoft.Speech.Recognition.SrgsGrammar Namespace