Grammar.LoadLocalizedGrammarFromType(Type, Object[]) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
public:
static System::Speech::Recognition::Grammar ^ LoadLocalizedGrammarFromType(Type ^ type, ... cli::array <System::Object ^> ^ onInitParameters);
public static System.Speech.Recognition.Grammar LoadLocalizedGrammarFromType (Type type, params object[] onInitParameters);
static member LoadLocalizedGrammarFromType : Type * obj[] -> System.Speech.Recognition.Grammar
Public Shared Function LoadLocalizedGrammarFromType (type As Type, ParamArray onInitParameters As Object()) As Grammar
Parameters
- onInitParameters
- Object[]
Parameters to be passed to an initialization method of the localized object based on Grammar. This parameter may be null.
Returns
The LoadLocalizedGrammarFromType
method returns a valid object based on Grammar, or null
if there has been an error.
Remarks
Localized grammars obtained with LoadLocalizedGrammarFromType
are typically strongly-typed (see IsStg for more information on strongly typed grammars). If onInitParameters
is a null reference (Nothing in Visual Basic) the localized grammar should have either no initialization method, or a method that takes no arguments.
Applies to
.NET