Table of Contents

AttachedSettingsRegistryExtensions 类

命名空间
ClassIsland.Core.Extensions.Registry
程序集
ClassIsland.Core.dll

附加设置控件注册的IServiceCollection扩展。

public static class AttachedSettingsRegistryExtensions
继承
AttachedSettingsRegistryExtensions
继承成员

方法

AddAttachedSettingsControl<T>(IServiceCollection)

注册附加设置控件。

public static IServiceCollection AddAttachedSettingsControl<T>(this IServiceCollection services) where T : AttachedSettingsControlBase

参数

services IServiceCollection

IServiceCollection对象。

返回

IServiceCollection

IServiceCollection对象。

类型参数

T

要注册的附加设置控件类型。

异常

InvalidOperationException

如果注册的控件没有添加AttachedSettingsControlInfoAttachedSettingsUsage属性,或此附加设置控件的 GUID 已经被占用,则会抛出此异常。