你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn。
HostConfigProviderAttribute 类
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
标识 IHostConfigProvider 用于提供初始特定于主机的服务配置的实现。 一次只能有一个此类实例处于活动状态,通常由主机直接提供。 用户可将 ConfigBuilder 类用作添加或修改主机提供的服务配置的机制。
[System.AttributeUsage(System.AttributeTargets.Assembly, AllowMultiple=false)]
public sealed class HostConfigProviderAttribute : Attribute
[<System.AttributeUsage(System.AttributeTargets.Assembly, AllowMultiple=false)>]
type HostConfigProviderAttribute = class
inherit Attribute
Public NotInheritable Class HostConfigProviderAttribute
Inherits Attribute
- 继承
-
HostConfigProviderAttribute
- 属性
构造函数
HostConfigProviderAttribute(Type) |
创建 的新实例, HostConfigProviderAttribute 标识 IHostConfigProvider 要用于提供初始主机配置的实现。 |
属性
ConfigProviderType |
获取 IHostConfigProvider 用于提供初始主机服务配置的 。 |