AddTemplate
ITemplateEngine.AddTemplate 方法
将模板添加到模板集合中。
public void AddTemplate(string key, string template, Type modelType)
参数 | 类型 | 描述 |
---|---|---|
key | String | 模板集合中模板的键。 |
template | String | 模板内容。 |
modelType | Type | 模板的模型对象类型。 |
将模板添加到模板集合中。
public void AddTemplate(string key, string template, Type modelType)
参数 | 类型 | 描述 |
---|---|---|
key | String | 模板集合中模板的键。 |
template | String | 模板内容。 |
modelType | Type | 模板的模型对象类型。 |