共用方式為


<activated> Element (Client Instance)

Contains client-activated objects that a client application consumes. The <client> element must have a url attribute specified if there is an <activated> element specified, or an exception will be thrown.

<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

configuration

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

system.web

Specifies the root element for the ASP.NET configuration section.

Example

The following configuration file declares a client-activated remote type for consumption and specifies that the client application should use the HttpChannel but allow the .NET Framework remoting system to find an appropriate port on the client's behalf.

<configuration>
   <system.runtime.remoting>
      <application>
         <client 
            url="http://computername:8080"
         />
            <activated
               type="RemoteType, RemoteAssembly"
            />
         </client>
         <channels>
            <channel 
               ref="http" 
               port="0"/>
         </channels>
      </application>
   </system.runtime.remoting>
</configuration>

See Also

Reference

Remoting Settings Schema

Concepts

Client Activation