Export (0) Print
Expand All

SrgsRuleRef Class

Represents the grammar element that specifies the rule to reference.

Namespace: Microsoft.Speech.Recognition.SrgsGrammar
Assembly: Microsoft.Speech (in microsoft.speech.dll)

[SerializableAttribute] 
[DebuggerDisplayAttribute("{DebuggerDisplayString()}")] 
[ImmutableObjectAttribute(true)] 
public sealed class SrgsRuleRef : 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

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.


System.Object
   System.MarshalByRefObject
     Microsoft.Speech.Recognition.SrgsGrammar.SrgsElement
      Microsoft.Speech.Recognition.SrgsGrammar.SrgsRuleRef

All public static (Shared in Visual Basic) members of this type are thread-safe. Instance members are not guaranteed to be thread-safe.

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

Show:
© 2014 Microsoft