Export (0) Print
Expand All

<service> Element 

Contains objects the application exposes to other application domains or contexts.


<service> 
   <wellknown/> 
   <activated/> 
</service>

The following sections describe attributes, child elements, and parent elements.

Attributes

None.

Child Elements

Element Description

<wellknown>

Contains information about server-activated (well-known) objects the application exposes. Can occur one or more times in the <service> element.

<activated>

Contains information about client-activated objects the application exposes. Can occur one or more times in the <service> element.

Parent Elements

Element Description

application

Contains information about remote objects the application consumes and exposes.

configuration

The root element in every configuration file used by the common language runtime and .NET Framework applications.

system.runtime.remoting

Contains information about remote objects and channels.

The following configuration file declares a server-activated (well-known) type, the object URI at which it is to be found, and the WellKnownObjectMode that controls activation of instances.

<configuration>
   <system.runtime.remoting>
      <application>
         <service>
            <wellknown 
               type="ServerActivatedType, RemoteAssembly" 
               objectUri="ServerType.rem" 
               mode="Singleton" 
            />
         </service>
      </application>
   </system.runtime.remoting>
</configuration>

Community Additions

ADD
Show:
© 2015 Microsoft