Partager via


Grammar.LoadLocalizedGrammarFromType(Type, Object[]) Method

Definition

The LoadLocalizedGrammarFromType method returns a localized instance of a Grammar object derived from Type.

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

type
Type

In an assembly, the Type of an object based on Grammar.

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