Lire en anglais Modifier

Partager via


Grammar.LoadLocalizedGrammarFromType(Type, Object[]) Method

Definition

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

C#
public static System.Speech.Recognition.Grammar LoadLocalizedGrammarFromType(Type type, params object[] onInitParameters);

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

Produit Versions
.NET 8 (package-provided), 9 (package-provided), 10 (package-provided)
.NET Framework 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1
.NET Standard 2.0 (package-provided)