次の方法で共有


<serverProviders> Element (Instance)

Contains providers for channel sinks that are to become part of the default server-side channel sink call chain for this channel template when the template is referenced elsewhere in the configuration file. Specifying providers here overrides the default channel sinks for this channel; if you expect any of those default channel sinks to be inserted into the channel sink call chain for this template, you must specify them here as well.

<configuration>   <system.runtime.remoting>      <channels>         <channel>**            <serverProviders>**

Providers here override this channel's default providers wherever this channel template is referenced.

<configuration>   <system.runtime.remoting>      <application>         <channels>            <channel>**               <serverProviders>**

Providers here override default providers for this channel instance only.

<serverProviders> 
   <formatter> 
   <provider> 
</serverProviders>

Child Elements

Element Description

<formatter>

Contains a formatter sink to be inserted into the channel sink call chain. Can occur once in the <serverProviders> instance element.

<provider>

Contains a channel sink to be inserted into the channel sink call chain. Can occur one or more times in the <serverProviders> instance element.

Remarks

When used in a channel template element, any referenced or declared providers at the level shown will override the channel's default providers and become the default providers if the channel is referenced elsewhere in the configuration file. It is important to realize that all default providers or formatters for this channel are overridden when this element is used. If you want those providers or formatters to be part of this channel template in addition to any custom providers, you must specify all providers and the formatter you want to be used with this channel when referenced by others.

When used in a channel instance, any referenced or declared providers at the level shown will override the channel's default providers for this channel instance only. If this instance references a template that declares server-side channel sink providers, then the providers indicated here will completely override those as well.

Requirements

Configuration Files: Application configuration file, machine configuration file (Machine.config)

See Also

Reference

Remoting Settings Schema