包含应用程序向其他应用程序域或上下文公开的对象。
<configuration>
<system.runtime.remoting> 元素
<application> 元素
<service> 元素
<service> 
   <wellknown/> 
   <activated/> 
</service>
属性和元素
以下几节介绍属性、子元素和父元素。
属性
无。
子元素
| 元素 | 说明 | 
|---|---|
| 包含有关应用程序公开的服务器激活(已知)对象的信息。可在 <service> 元素中出现一次或多次。 | |
| 包含有关应用程序公开的客户端激活对象的信息。可在 <service> 元素中出现一次或多次。 | 
父元素
| 元素 | 说明 | 
|---|---|
| application | 包含有关应用程序使用和公开的远程对象的信息。 | 
| configuration | 公共语言运行库和 .NET Framework 应用程序所使用的每个配置文件中的根元素。 | 
| system.runtime.remoting | 包含有关远程对象和信道的信息。 | 
示例
下面的配置文件声明一个服务器激活(已知)类型、该类型所在的对象 URI 以及控制实例激活的 WellKnownObjectMode。
<configuration>
   <system.runtime.remoting>
      <application>
         <service>
            <wellknown 
               type="ServerActivatedType, RemoteAssembly" 
               objectUri="ServerType.rem" 
               mode="Singleton" 
            />
         </service>
      </application>
   </system.runtime.remoting>
</configuration>
请参见
参考
概念
.gif)
版权所有 (C) 2007 Microsoft Corporation。保留所有权利。