Table of Contents

WeatherIconTemplateRegistryExtensions 类

命名空间
ClassIsland.Core.Extensions.Registry
程序集
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 IServiceCollection

IServiceCollection 实例

id string

天气图标模板 ID

name string

天气图标模板名称

template DataTemplate

天气图标模板内容

返回

IServiceCollection

原来的 IServiceCollection 实例