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