Windows apps
Collapse the table of content
Expand the table of content
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

ActivationOption Enumeration

 

Specifies the manner in which serviced components are activated in the application.

Namespace:   System.EnterpriseServices
Assembly:  System.EnterpriseServices (in System.EnterpriseServices.dll)

[SerializableAttribute]
public enum class ActivationOption

Member nameDescription
Library

Specifies that serviced components in the marked application are activated in the creator's process.

Server

Specifies that serviced components in the marked application are activated in a system-provided process.

The activation setting for the application defaults to Library.

The following code example demonstrates the use of this enumeration.


[assembly:ApplicationName("Calculator")];
[assembly:ApplicationActivation(ActivationOption::Library)];
[assembly:System::Reflection::AssemblyKeyFile("Calculator.snk")];
public ref class Calculator: public ServicedComponent
{
public:
   int Add( int x, int y )
   {
      return (x + y);
   }

};

.NET Framework
Available since 1.1
Return to top
Show:
© 2017 Microsoft