Export (0) Print
Expand All
Expand Minimize

RegistrationClassContext Enumeration

Note: This enumeration is new in the .NET Framework version 2.0.

Specifies the set of execution contexts in which a class object will be made available for requests to construct instances.

This enumeration has a FlagsAttribute attribute that allows a bitwise combination of its member values.

Namespace: System.Runtime.InteropServices
Assembly: mscorlib (in mscorlib.dll)

[FlagsAttribute] 
public enum RegistrationClassContext
/** @attribute FlagsAttribute() */ 
public enum RegistrationClassContext
FlagsAttribute 
public enum RegistrationClassContext

 Member nameDescription
DisableActivateAsActivatorDisables activate-as-activator (AAA) activations for this activation only. 
EnableActivateAsActivatorEnables activate-as-activator (AAA) activations for this activation only. 
EnableCodeDownloadAllows the downloading of code from the Directory Service or the Internet. 
FromDefaultContextBegin this activation from the default context of the current apartment. 
InProcessHandlerThe code that manages objects of this class is an in-process handler. 
InProcessHandler16Not used. 
InProcessServerThe code that creates and manages objects of this class is a DLL that runs in the same process as the caller of the function specifying the class context. 
InProcessServer16Not used. 
LocalServerThe EXE code that creates and manages objects of this class runs on same machine but is loaded in a separate process space. 
NoCodeDownloadDisallows the downloading of code from the Directory Service or the Internet. 
NoCustomMarshalSpecifies whether activation fails if it uses custom marshaling. 
NoFailureLogOverrides the logging of failures. 
RemoteServerA remote machine context. 
Reserved1Not used. 
Reserved2Not used. 
Reserved3Not used. 
Reserved4Not used. 
Reserved5Not used. 

The values in the RegistrationClassContext enumeration are used in the classContext parameter of the RegisterTypeForComClients method. These values are the same as those defined in the COM CLSCTX enumeration, which is used as the parameter in calls to the COM API CoRegisterClassObject.

For more information about CoRegisterClassObject and the CLSCTX enumeration, see the MSDN library.

Windows 98, Windows 2000 SP4, Windows Millennium Edition, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see System Requirements.

.NET Framework

Supported in: 2.0

Community Additions

ADD
Show:
© 2014 Microsoft