Share via


<activated> Element (Service Instance)

This topic is specific to a legacy technology that is retained for backward compatibility with existing applications and is not recommended for new development. Distributed applications should now be developed using the  Windows Communication Foundation (WCF).

Contains information about client-activated objects that the application exposes to clients.

Schema Hierarchy

<configuration>
  <system.runtime.remoting> Element
    <application> Element
      <service> Element
        <activated> Element (Service Instance)

Syntax

<activated  
   type="type,assembly" 
/>

Attributes and Elements

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

Attributes

Attribute Description

type

Required attribute.

Specifies the full type name of the object and the name of the assembly that contains the type implementation. This includes version, culture, and public key information if the containing assembly is in the global assembly cache.

Child Elements

None.

Parent Elements

Element Description

application

Contains information about remote objects that the application consumes and exposes.

configuration

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

service

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

system.runtime.remoting

Contains information about remote objects and channels.

Example

The following configuration file declares a client-activated type.

<configuration>
   <system.runtime.remoting>
      <application>
         <service>
            <activated type="ClientActivatedType, RemoteAssembly"/>
         </service>
      </application>
   </system.runtime.remoting>
</configuration>

See Also

Reference

Remoting Settings Schema

Concepts

Activation of Remote Objects

Copyright © 2007 by Microsoft Corporation. All rights reserved.