如何:在配置文件中配置信道

此代码示例演示如何在配置文件中的 <channel> 元素(实例)中配置信道。如果要指定使用全局程序集缓存中的类型的模板,必须包括所有版本控制和强名称信息,以绑定到适当的类型。

示例

<channel 
   name="MyCustomChannel"  
   priority="2"
   type="CustomChannelName, CustomAssembly, Version=1.0.6940.0, Culture=neutral, PublicKeyToken=somepublickeystring" 
/>

请参见

概念

信道和格式化程序配置属性

Footer image

版权所有 (C) 2007 Microsoft Corporation。保留所有权利。