使用 Windows Communication Foundation (WCF) 配置元素,您可以配置 WCF 服务和客户端应用程序。可以使用配置编辑器工具 (SvcConfigEditor.exe) 创建和修改客户端和服务的配置文件。由于配置文件的格式都是以 XML 形式设置的,因此,如果要使用文本编辑器手动编辑这些文件,则您必须熟悉 XML。否则,您可能会遇到一些问题,如找不到某个 XML 元素标记或特性。这是因为 XML 元素标记和属性是区分大小写的。
WCF 配置系统基于 System.Configuration 命名空间。因此,您可以使用 System.Configuration 命名空间提供的所有标准功能(如配置锁定、加密和合并)以提高应用程序及其配置的安全性。
Windows Communication Foundation 配置架构