RegistrationConnectionType RegistrationConnectionType RegistrationConnectionType RegistrationConnectionType Enum

Definition

Defines the types of connections to a class object.

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

public enum class RegistrationConnectionType
[System.Flags]
public enum RegistrationConnectionType
type RegistrationConnectionType = 
Public Enum RegistrationConnectionType
Inheritance
RegistrationConnectionTypeRegistrationConnectionTypeRegistrationConnectionTypeRegistrationConnectionType
Attributes

Fields

MultipleUse MultipleUse MultipleUse MultipleUse 1

Multiple applications can connect to the class object through calls to CoGetClassObject.

MultiSeparate MultiSeparate MultiSeparate MultiSeparate 2

Registers separate CLSCTX_LOCAL_SERVER and CLSCTX_INPROC_SERVER class factories.

SingleUse SingleUse SingleUse SingleUse 0

Once 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.

Surrogate Surrogate Surrogate Surrogate 8

The class object is a surrogate process used to run DLL servers.

Suspended Suspended Suspended Suspended 4

Suspends registration and activation requests for the specified CLSID until there is a call to CoResumeClassObjects.

Remarks

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.

Applies to

See Also