Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Priority Property

Grammar.Priority Property

Set or gets a value used as a tie breaker when one or more grammars have returned a recognized phrase.

Namespace: System.Speech.Recognition
Assembly: System.Speech (in system.speech.dll)

public int Priority { get; set; }
/** @property */
public int get_Priority ()

/** @property */
public void set_Priority (int value)

public function get Priority () : int

public function set Priority (value : int)

Not applicable.

Property Value

Returns an integer value representing the relative priority of a specific Grammar.

The default value of Priority is 0.

Priority can be set to any value between 128 and 128.

Unlike Weight, the use of Priority is purely deterministic.

If a recognition engine determines that any of two or more Grammar objects it is using to perform recognition operation are equally likely to provide speech recognition, the recognition engine uses the Grammar with the highest Priority.

Windows 98, Windows Server 2000 SP4, Windows CE, Windows Millennium Edition, Windows Mobile for Pocket PC, Windows Mobile for Smartphone, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.

.NET Framework

Supported in: 3.0

Community Additions

ADD
Show:
© 2015 Microsoft