WeatherIconTemplateRegistryExtensions 类
- 程序集
- ClassIsland.Core.dll
注册天气图标模板的扩展方法。
public static class WeatherIconTemplateRegistryExtensions
- 继承
-
WeatherIconTemplateRegistryExtensions
- 继承成员
方法
AddWeatherIconTemplate(IServiceCollection, string, string, IDataTemplate)
注册天气图标模板
public static IServiceCollection AddWeatherIconTemplate(this IServiceCollection services, string id, string name, IDataTemplate template)
参数
servicesIServiceCollectionidstring天气图标模板 ID
namestring天气图标模板名称
templateIDataTemplate天气图标模板内容