AttachedSettingsRegistryExtensions 类
- 程序集
- 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
返回
类型参数
T
要注册的附加设置控件类型。
异常
- InvalidOperationException
如果注册的控件没有添加AttachedSettingsControlInfo和AttachedSettingsUsage属性,或此附加设置控件的 GUID 已经被占用,则会抛出此异常。