Expand Minimize
This topic has not yet been rated - Rate this topic

RegistrationConnectionType Enumeration

Defines the types of connections to a class object.

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 RegistrationConnectionType
Member nameDescription
SingleUseOnce an application is connected to a class object with CoGetClassObject, the class object is removed from public view so that no other applications can connect to it. This value is commonly used for single document interface (SDI) applications.
MultipleUseMultiple applications can connect to the class object through calls to CoGetClassObject.
MultiSeparateRegisters separate CLSCTX_LOCAL_SERVER and CLSCTX_INPROC_SERVER class factories.
SuspendedSuspends registration and activation requests for the specified CLSID until there is a call to CoResumeClassObjects.
SurrogateThe class object is a surrogate process used to run DLL servers.

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

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

.NET Framework

Supported in: 4.5, 4, 3.5, 3.0, 2.0

.NET Framework Client Profile

Supported in: 4, 3.5 SP1

Windows 8, Windows Server 2012, Windows 7, Windows Vista SP2, Windows Server 2008 (Server Core Role not supported), Windows Server 2008 R2 (Server Core Role supported with SP1 or later; Itanium not supported)

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

Did you find this helpful?
(1500 characters remaining)
© 2013 Microsoft. All rights reserved.