Eksportér (0) Udskriv
Udvid alt
Expand Minimize
EN
Dette indhold er ikke tilgængeligt på dit sprog, men her er den engelske version.

RegistrationClassContext Enumeration

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

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

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 dwClsContext parameter in calls to the COM API CoRegisterClassObject.

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

.NET Framework

Supported in: 4, 3.5, 3.0, 2.0

.NET Framework Client Profile

Supported in: 4, 3.5 SP1

Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows XP SP2 x64 Edition, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

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

Fællesskabsindhold

Tilføj
Vis:
© 2014 Microsoft