CSharpRazorCodeGenerator(String, String, String, RazorEngineHost) Constructeur
Définition
Important
Certaines informations portent sur la préversion du produit qui est susceptible d’être en grande partie modifiée avant sa publication. Microsoft exclut toute garantie, expresse ou implicite, concernant les informations fournies ici.
Ce type/membre prend en charge l'infrastructure .NET Framework et n'est pas destiné à être directement utilisé à partir de votre code. Initialise une nouvelle instance de la classe CSharpRazorCodeGenerator.
public CSharpRazorCodeGenerator(string className, string rootNamespaceName, string sourceFileName, System.Web.Razor.RazorEngineHost host);
new System.Web.Razor.Generator.CSharpRazorCodeGenerator : string * string * string * System.Web.Razor.RazorEngineHost -> System.Web.Razor.Generator.CSharpRazorCodeGenerator
Public Sub New (className As String, rootNamespaceName As String, sourceFileName As String, host As RazorEngineHost)
Paramètres
- className
- String
Nom de la classe de la déclaration de type de classe générée.
- rootNamespaceName
- String
Nom de la déclaration d'espace de noms générée.
- sourceFileName
- String
Fichier source.
- host
- RazorEngineHost
Hôte hébergeant Razor.