RegistrationConnectionType RegistrationConnectionType RegistrationConnectionType RegistrationConnectionType Enum

定义

定义到类对象的连接的类型。Defines the types of connections to a class object.

此枚举有一个 FlagsAttribute 属性,允许按位组合成员值。

public enum class RegistrationConnectionType
[System.Flags]
public enum RegistrationConnectionType
type RegistrationConnectionType = 
Public Enum RegistrationConnectionType
继承
RegistrationConnectionTypeRegistrationConnectionTypeRegistrationConnectionTypeRegistrationConnectionType
属性

字段

MultipleUse MultipleUse MultipleUse MultipleUse 1

可通过调用 CoGetClassObject 将多个应用程序连接到该类对象。Multiple applications can connect to the class object through calls to CoGetClassObject.

MultiSeparate MultiSeparate MultiSeparate MultiSeparate 2

注册单独的 CLSCTX_LOCAL_SERVER 和 CLSCTX_INPROC_SERVER 类工厂。Registers separate CLSCTX_LOCAL_SERVER and CLSCTX_INPROC_SERVER class factories.

SingleUse SingleUse SingleUse SingleUse 0

在应用程序使用 CoGetClassObject 连接到一个类对象后,该类对象就将从公共视图中移除,这样其他应用程序就不能连接到该类对象。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. 此值通常用于单文档界面 (SDI) 应用程序。This value is commonly used for single document interface (SDI) applications.

Surrogate Surrogate Surrogate Surrogate 8

类对象是用来运行 DLL 服务器的代理项进程。The class object is a surrogate process used to run DLL servers.

Suspended Suspended Suspended Suspended 4

挂起对指定 CLSID 的注册和激活请求,直到出现对 CoResumeClassObjects 的调用。Suspends registration and activation requests for the specified CLSID until there is a call to CoResumeClassObjects.

注解

中的值RegistrationConnectionType中使用枚举flags参数的RegisterTypeForComClients方法。The values in the RegistrationConnectionType enumeration are used in the flags parameter of the RegisterTypeForComClients method. 这些值是在 COM 中定义的相同结合枚举,将其用作flags中对 COM API 的调用参数CoRegisterClassObjectThese 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.

有关详细信息CoRegisterClassObject结合枚举,请参阅 MSDN 库。For more information about CoRegisterClassObject and the REGCLS enumeration, see the MSDN library.

适用于

另请参阅