RegistrationConnectionType 枚举

定义

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

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

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

字段

MultipleUse 1

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

MultiSeparate 2

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

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 8

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

Suspended 4

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

注解

RegistrationConnectionType枚举中的值flagsRegisterTypeForComClients方法的参数中使用。The values in the RegistrationConnectionType enumeration are used in the flags parameter of the RegisterTypeForComClients method. 这些值与 com REGCLS枚举中定义的值相同, 后者用作对 com API flags CoRegisterClassObject的调用中的参数。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.

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

适用于

另请参阅