ServiceModelSectionGroup 类

定义

表示Windows Communication Foundation(WCF)的主配置部分。 此类不能被继承。

public ref class ServiceModelSectionGroup sealed : System::Configuration::ConfigurationSectionGroup
public sealed class ServiceModelSectionGroup : System.Configuration.ConfigurationSectionGroup
type ServiceModelSectionGroup = class
    inherit ConfigurationSectionGroup
Public NotInheritable Class ServiceModelSectionGroup
Inherits ConfigurationSectionGroup
继承
ServiceModelSectionGroup

注解

所有 WCF 配置元素都嵌套在配置文件的元素中 system.serviceModel 。 WCF 不会将元素添加到其他产品的配置部分。

构造函数

名称 说明
ServiceModelSectionGroup()

初始化 ServiceModelSectionGroup 类的新实例。

属性

名称 说明
Behaviors

获取包含行为元素的子项的配置节。

Bindings

获取包含所有绑定的配置节。

Client

获取包含客户端用于连接到服务的终结点列表的配置部分。

ComContracts

获取用于定义 COM+ 互操作性中使用的服务协定的命名空间和协定名称的配置部分。

CommonBehaviors

获取配置节,其中包含在应用节中行为之前应用于计算机上的所有 WCF 服务的行为 behaviors 列表。

Diagnostic

获取 WCF 诊断功能的配置部分。

Extensions

获取定义所有扩展的配置节。

IsDeclarationRequired

获取一个值,该值指示是否需要此 ConfigurationSectionGroup 对象声明。

(继承自 ConfigurationSectionGroup)
IsDeclared

获取一个值,该值指示是否声明此 ConfigurationSectionGroup 对象。

(继承自 ConfigurationSectionGroup)
Name

获取此 ConfigurationSectionGroup 对象的 name 属性。

(继承自 ConfigurationSectionGroup)
ProtocolMapping

获取定义通信协议的终结点配置部分。

SectionGroupName

获取与此 ConfigurationSectionGroup关联的节组名称。

(继承自 ConfigurationSectionGroup)
SectionGroups

获取一个ConfigurationSectionGroupCollection对象,该对象包含作为此ConfigurationSectionGroup对象的子级的所有ConfigurationSectionGroup对象。

(继承自 ConfigurationSectionGroup)
Sections

获取一个ConfigurationSectionCollection对象,该对象包含此ConfigurationSection对象中的所有ConfigurationSectionGroup对象。

(继承自 ConfigurationSectionGroup)
ServiceHostingEnvironment

获取用于定义服务托管环境实例化特定传输类型的配置部分。

Services

获取定义服务集合的配置节。

StandardEndpoints

获取标准终结点的配置节。

Type

获取或设置此 ConfigurationSectionGroup 对象的类型。

(继承自 ConfigurationSectionGroup)

方法

名称 说明
Equals(Object)

确定指定的对象是否等于当前对象。

(继承自 Object)
ForceDeclaration()

强制此 ConfigurationSectionGroup 对象的声明。

(继承自 ConfigurationSectionGroup)
ForceDeclaration(Boolean)

强制此 ConfigurationSectionGroup 对象的声明。

(继承自 ConfigurationSectionGroup)
GetHashCode()

用作默认哈希函数。

(继承自 Object)
GetSectionGroup(Configuration)

从指定的配置文件中 system.ServiceModel 获取配置节组。

GetType()

获取当前实例的 Type

(继承自 Object)
MemberwiseClone()

创建当前 Object的浅表副本。

(继承自 Object)
ShouldSerializeSectionGroupInTargetVersion(FrameworkName)

指示在为 .NET Framework 的指定目标版本序列化配置对象层次结构时,是否应序列化当前的 ConfigurationSectionGroup 实例。

(继承自 ConfigurationSectionGroup)
ToString()

返回一个表示当前对象的字符串。

(继承自 Object)

适用于