共用方式為


MvcCSharpCodeGenerator 建構函式

定義

public:
 MvcCSharpCodeGenerator(Microsoft::AspNetCore::Razor::CodeGenerators::CodeGeneratorContext ^ context, System::String ^ defaultModel, System::String ^ injectAttribute, Microsoft::AspNetCore::Mvc::Razor::GeneratedTagHelperAttributeContext ^ tagHelperAttributeContext);
public MvcCSharpCodeGenerator (Microsoft.AspNetCore.Razor.CodeGenerators.CodeGeneratorContext context, string defaultModel, string injectAttribute, Microsoft.AspNetCore.Mvc.Razor.GeneratedTagHelperAttributeContext tagHelperAttributeContext);
new Microsoft.AspNetCore.Mvc.Razor.MvcCSharpCodeGenerator : Microsoft.AspNetCore.Razor.CodeGenerators.CodeGeneratorContext * string * string * Microsoft.AspNetCore.Mvc.Razor.GeneratedTagHelperAttributeContext -> Microsoft.AspNetCore.Mvc.Razor.MvcCSharpCodeGenerator
Public Sub New (context As CodeGeneratorContext, defaultModel As String, injectAttribute As String, tagHelperAttributeContext As GeneratedTagHelperAttributeContext)

參數

defaultModel
String
injectAttribute
String
tagHelperAttributeContext
GeneratedTagHelperAttributeContext

適用於