System.EnterpriseServices 命名空间

System.EnterpriseServices 命名空间为企业应用程序提供重要的基础结构。 The System.EnterpriseServices namespace provides an important infrastructure for enterprise applications. COM+ 为企业级环境中部署的组件编程模型提供服务结构。 COM+ provides a services architecture for component programming models deployed in an enterprise environment. 此命名空间为 .NET 对象提供了对 COM+ 服务的访问,从而使 .NET Framework 对象更适用于企业级应用程序。 This namespace provides .NET objects with access to COM+ services making the .NET Framework objects more practical for enterprise applications.

Activity

创建一个活动以同步或异步批处理工作,该工作可使用 COM+ 服务而无需创建 COM+ 组件。Creates an activity to do synchronous or asynchronous batch work that can use COM+ services without needing to create a COM+ component. 此类不能被继承。This class cannot be inherited.

ApplicationAccessControlAttribute

为包含 ServicedComponent 类的程序集指定访问控制。Specifies access controls to an assembly containing ServicedComponent classes.

ApplicationActivationAttribute

指定程序集中的组件是在创建者的进程中运行还是在系统进程中运行。Specifies whether components in the assembly run in the creator's process or in a system process.

ApplicationIDAttribute

为该程序集指定应用程序 ID(作为 GUID)。Specifies the application ID (as a GUID) for this assembly. 此类不能被继承。This class cannot be inherited.

ApplicationNameAttribute

指定将用于程序集中组件安装的 COM+ 应用程序的名称。Specifies the name of the COM+ application to be used for the install of the components in the assembly. 此类不能被继承。This class cannot be inherited.

ApplicationQueuingAttribute

为标记的程序集启用队列支持,并启用应用程序从“消息队列”队列读取方法调用。Enables queuing support for the marked assembly and enables the application to read method calls from Message Queuing queues. 此类不能被继承。This class cannot be inherited.

AutoCompleteAttribute

将特性化方法标记为 AutoComplete 对象。Marks the attributed method as an AutoComplete object. 此类不能被继承。This class cannot be inherited.

BYOT

包装 COM+ ByotServerEx 类以及 COM+ DTC 接口 ICreateWithTransactionExICreateWithTipTransactionExWraps the COM+ ByotServerEx class and the COM+ DTC interfaces ICreateWithTransactionEx and ICreateWithTipTransactionEx. 此类不能被继承。This class cannot be inherited.

ComponentAccessControlAttribute

在对组件的调用上启用安全检查。Enables security checking on calls to a component. 此类不能被继承。This class cannot be inherited.

COMTIIntrinsicsAttribute

使您可以将上下文属性从 COM 事务集成器 (COMTI) 传递到 COM+ 上下文中。Enables you to pass context properties from the COM Transaction Integrator (COMTI) into the COM+ context.

ConstructionEnabledAttribute

启用 COM+ 对象结构支持。Enables COM+ object construction support. 此类不能被继承。This class cannot be inherited.

ContextUtil

获取有关 COM+ 对象上下文的信息。Obtains information about the COM+ object context. 此类不能被继承。This class cannot be inherited.

DescriptionAttribute

设置有关程序集(应用程序)、组件、方法或接口的说明。Sets the description on an assembly (application), component, method, or interface. 此类不能被继承。This class cannot be inherited.

EventClassAttribute

将特性化类标记为事件类。Marks the attributed class as an event class. 此类不能被继承。This class cannot be inherited.

EventTrackingEnabledAttribute

为组件启用事件跟踪。Enables event tracking for a component. 此类不能被继承。This class cannot be inherited.

ExceptionClassAttribute

设置排队类的排队异常类。Sets the queuing exception class for the queued class. 此类不能被继承。This class cannot be inherited.

IISIntrinsicsAttribute

启用从 GetNamedProperty(String) 对 ASP 内部值的访问。Enables access to ASP intrinsic values from GetNamedProperty(String). 此类不能被继承。This class cannot be inherited.

InterfaceQueuingAttribute

为标记的接口启用队列支持。Enables queuing support for the marked interface. 此类不能被继承。This class cannot be inherited.

JustInTimeActivationAttribute

打开或关闭实时 (JIT) 激活。Turns just-in-time (JIT) activation on or off. 此类不能被继承。This class cannot be inherited.

LoadBalancingSupportedAttribute

如果在服务器上安装并启用了组件负载平衡服务,则确定组件是否加入负载平衡。Determines whether the component participates in load balancing, if the component load balancing service is installed and enabled on the server.

MustRunInClientContextAttribute

如有可能,强制在创建者的上下文中创建特性化的对象。Forces the attributed object to be created in the context of the creator, if possible. 此类不能被继承。This class cannot be inherited.

ObjectPoolingAttribute

启用和配置用于组件的对象池。Enables and configures object pooling for a component. 此类不能被继承。This class cannot be inherited.

PrivateComponentAttribute

将组件标识为专用组件,专用组件仅对同一应用程序中的组件而言是可见的并只可由同一应用程序中的组件激活。Identifies a component as a private component that is only seen and activated by components in the same application. 此类不能被继承。This class cannot be inherited.

RegistrationConfig

为将程序集安装到 COM+ 目录中提供配置信息。Provides configuration information for installing assemblies into the COM+ catalog.

RegistrationErrorInfo

检索与多个 COM+ 对象相关的方法有关的扩展错误信息。Retrieves extended error information about methods related to multiple COM+ objects. 这还包括安装、导入和导出 COM+ 应用程序和组件的方法。This also includes methods that install, import, and export COM+ applications and components. 此类不能被继承。This class cannot be inherited.

RegistrationException

检测到注册错误时所引发的异常。The exception that is thrown when a registration error is detected.

RegistrationHelper

在 COM+ 目录中安装并配置程序集。Installs and configures assemblies in the COM+ catalog. 此类不能被继承。This class cannot be inherited.

RegistrationHelperTx

在维护新建立的事务时,由 .NET Framework 基础结构用来在 COM+ 目录中安装并配置程序集。Used by the .NET Framework infrastructure to install and configure assemblies in the COM+ catalog while maintaining a newly established transaction.

ResourcePool

在当前事务中存储对象。Stores objects in the current transaction. 此类不能被继承。This class cannot be inherited.

SecureMethodAttribute

确保在使用安全服务时,结构通过接口为类中的一个方法或每一方法进行调用。Ensures that the infrastructure calls through an interface for a method or for each method in a class when using the security service. 类需要使用接口以使用安全服务。Classes need to use interfaces to use security services. 此类不能被继承。This class cannot be inherited.

SecurityCallContext

描述调用方链,该链最终导致当前方法调用。Describes the chain of callers leading up to the current method call.

SecurityCallers

提供当前调用链中标识的已排序的集合。Provides an ordered collection of identities in the current call chain.

SecurityIdentity

包含与 COM+ 调用链中的标识有关的信息。Contains information that regards an identity in a COM+ call chain.

SecurityRoleAttribute

为应用程序或组件配置角色。Configures a role for an application or component. 此类不能被继承。This class cannot be inherited.

ServiceConfig

指定并配置在调用 Enter(ServiceConfig) 或创建 Activity 时进入的域中将处于活动状态的服务。Specifies and configures the services that are to be active in the domain which is entered when calling Enter(ServiceConfig) or creating an Activity. 此类不能被继承。This class cannot be inherited.

ServicedComponent

表示使用 COM+ 服务的所有类的基类。Represents the base class of all classes using COM+ services.

ServicedComponentException

在已维护的组件中检测到错误时引发的异常。The exception that is thrown when an error is detected in a serviced component.

ServiceDomain

允许由 Enter(ServiceConfig)Leave() 标识的代码段在其自身的上下文中运行,其行为如同在此上下文中创建的对象上调用的方法。Allows a code segment identified by Enter(ServiceConfig) and Leave() to run in its own context and behave as if it were a method that is called on an object created within the context. 此类不能被继承。This class cannot be inherited.

SharedProperty

访问共享属性。Accesses a shared property. 此类不能被继承。This class cannot be inherited.

SharedPropertyGroup

表示共享属性的集合。Represents a collection of shared properties. 此类不能被继承。This class cannot be inherited.

SharedPropertyGroupManager

控制对共享属性组的访问。Controls access to shared property groups. 此类不能被继承。This class cannot be inherited.

SynchronizationAttribute

设置组件的同步值。Sets the synchronization value of the component. 此类不能被继承。This class cannot be inherited.

TransactionAttribute

指定可用于特性化对象的事务的类型。Specifies the type of transaction that is available to the attributed object. 允许值是 TransactionOption 枚举的成员。Permissible values are members of the TransactionOption enumeration.

结构

BOID

表示与事务关联的工作单元。Represents the unit of work associated with a transaction. 该结构用于 XACTTRANSINFO 中。This structure is used in XACTTRANSINFO.

XACTTRANSINFO

表示在 ITransaction 接口中使用的结构。Represents a structure used in the ITransaction interface.

接口

IAsyncErrorNotify

在由 Activity 对象提交的异步批处理工作上实现错误捕获。Implements error trapping on the asynchronous batch work that is submitted by the Activity object.

IPlaybackControl

“消息队列”传送机制的服务器端播放错误和客户端失败的异常处理中的“排队组件”中的函数。Functions in Queued Components in the abnormal handling of server-side playback errors and client-side failures of the Message Queuing delivery mechanism.

IProcessInitControl

支持为 Startup(Object) 方法设置超时。Supports setting the time-out for the Startup(Object) method.

IProcessInitializer

支持 COM 组件启动或关闭时可调用的方法。Supports methods that can be called when a COM component starts up or shuts down.

IRegistrationHelper

在 COM+ 目录中安装并配置程序集。Installs and configures assemblies in the COM+ catalog.

IRemoteDispatch

ServicedComponent 类实现,以确定是将远程方法调用的 AutoCompleteAttribute 类特性设置为 true 还是设置为 falseImplemented by the ServicedComponent class to determine if the AutoCompleteAttribute class attribute is set to true or false for a remote method invocation.

IServiceCall

实现通过由 Activity 创建的活动提交的批处理工作。Implements the batch work that is submitted through the activity created by Activity.

IServicedComponentInfo

ServicedComponent 类实现,用于通过 GetComponentInfo(Int32, String[]) 方法获取关于组件的信息。Implemented by the ServicedComponent class to obtain information about the component via the GetComponentInfo(Int32, String[]) method.

ITransaction

与分布式事务协调器 (DTC) ITransaction 接口对应,并且受通过 Transaction 获取的对象的支持。Corresponds to the Distributed Transaction Coordinator (DTC) ITransaction interface and is supported by objects obtained through Transaction.

枚举

AccessChecksLevelOption

为应用程序指定访问检查级别,检查可以只在进程级别,也可以在包括组件、接口和方法级别的所有级别。Specifies the level of access checking for an application, either at the process level only or at all levels, including component, interface, and method levels.

ActivationOption

指定在应用程序中激活已维护的组件的方式。Specifies the manner in which serviced components are activated in the application.

AuthenticationOption

指定远程过程调用 (RPC) 身份验证机制。 只在当 ActivationOption 设置为 Server 时适用。Applicable only when the ActivationOption is set to Server.

BindingOption

指示是否将由 Activity 提交的所有工作仅绑定到一个单线程单元 (STA)。 此枚举对多线程单元 (MTA) 不起作用。This enumeration has no impact on the multithreaded apartment (MTA).

ImpersonationLevelOption

指定调用服务器应用程序的目标时允许的模拟级别。Specifies the level of impersonation allowed when calling targets of a server application.

InheritanceOption

指示基于当前上下文或基于 ServiceConfig 中的信息创建新的上下文。Indicates whether to create a new context based on the current context or on the information in ServiceConfig.

InstallationFlags

RegistrationHelper 类一起使用的标志。Flags used with the RegistrationHelper class.

PartitionOption

指示要在其中运行 COM+ 分区的上下文。Indicates the context in which to run the COM+ partition.

PropertyLockMode

指定在共享的属性组管理器中访问共享属性的模式。Specifies the mode for accessing shared properties in the shared property group manager.

PropertyReleaseMode

为新的共享属性组中的属性指定释放模式。Specifies the release mode for the properties in the new shared property group.

SxsOption

指示如何为 ServiceConfig 配置并行 (Side-by-Side) 程序集。Indicates how side-by-side assemblies are configured for ServiceConfig.

SynchronizationOption

指定组件请求的自动同步的类型。Specifies the type of automatic synchronization requested by the component.

ThreadPoolOption

指示该工作(由 Activity 提交)当前正在哪一个线程池中运行。Indicates the thread pool in which the work, submitted by Activity, runs.

TransactionIsolationLevel

指定 TransactionAttribute 的值。Specifies the value of the TransactionAttribute.

TransactionOption

指定组件请求的自动事务类型。Specifies the automatic transaction type requested by the component.

TransactionStatus

指示事务状态。Indicates the transaction status.

TransactionVote

指定事务结果决定所允许的值。Specifies the values allowed for transaction outcome voting.

委托

ResourcePool.TransactionEndDelegate

表示处理事务结束的方法。Represents the method that handles the ending of a transaction.

注解

有关使用System.EnterpriseServices的信息, 请参阅编写服务组件For information about using System.EnterpriseServices, see Writing Serviced Components