你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

HostConfigProviderAttribute 类

定义

标识 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 用于提供初始主机服务配置的 。

适用于