System.Runtime.InteropServices.RegistrationConnectionType Enumeration

Defines the types of connections to a class object.

Syntax

[System.Flags]
public enum RegistrationConnectionType

Remarks

The values in the System.Runtime.InteropServices.RegistrationConnectionType enumeration are used in the flags parameter of the RegistrationServices.RegisterTypeForComClients(Type, RegistrationClassContext, RegistrationConnectionType) 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.

Members

Member NameDescription
MultipleUse

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

MultiSeparate

Registers separate CLSCTX_LOCAL_SERVER and CLSCTX_INPROC_SERVER class factories.

SingleUse

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

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

Suspended

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

Requirements

Namespace: System.Runtime.InteropServices
Assembly: mscorlib (in mscorlib.dll)
Assembly Versions: 2.0.0.0, 4.0.0.0
Since: .NET 2.0