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.

public ref class ServiceConfig sealed
[System.Runtime.InteropServices.ComVisible(false)]
public sealed class ServiceConfig
type ServiceConfig = class
Public NotInheritable Class ServiceConfig
继承
ServiceConfig
属性

注解

EnterActivity允许你使用ServiceConfig配置的服务, 而不需要将这些服务与组件关联。Enter and Activity allow you to use the services configured by ServiceConfig with no need to tie those services to a component.

构造函数

ServiceConfig()

初始化 ServiceConfig 类的新实例,并设置属性来配置所需服务。Initializes a new instance of the ServiceConfig class, setting the properties to configure the desired services.

属性

Binding

获取或设置绑定选项,该选项指示是否将该活动提交的所有工作仅绑定到一个单线程单元 (STA)。Gets or sets the binding option, which indicates whether all work submitted by the activity is to be bound to only one single-threaded apartment (STA).

BringYourOwnSystemTransaction

获取或设置一个 Transaction,它表示一个为运行 ServiceConfig 标识的事务而提供设置的现有事务。Gets or sets a Transaction that represents an existing transaction that supplies the settings used to run the transaction identified by ServiceConfig.

BringYourOwnTransaction

获取或设置一个 ITransaction,它表示一个为运行 ServiceConfig 标识的事务而提供设置的现有事务。Gets or sets a ITransaction that represents an existing transaction that supplies the settings used to run the transaction identified by ServiceConfig.

COMTIIntrinsicsEnabled

获取或设置一个值,该值指示是否启用 COM 事务集成器 (COMTI) 内部对象。Gets or sets a value that indicates whether COM Transaction Integrator (COMTI) intrinsics are enabled.

IISIntrinsicsEnabled

获取或设置一个值,该值指示是否启用 Internet 信息服务 (IIS) 内部对象。Gets or sets a value that indicates whether Internet Information Services (IIS) intrinsics are enabled.

Inheritance

获取或设置一个值,该值指示是基于当前上下文构造新的上下文,还是仅基于 ServiceConfig 中的信息创建新的上下文。Gets or sets a value that indicates whether to construct a new context based on the current context or to create a new context based solely on the information in ServiceConfig.

IsolationLevel

获取或设置事务的隔离级别。Gets or sets the isolation level of the transaction.

PartitionId

获取或设置要使用的 COM+ 分区的 GUID。Gets or sets the GUID for the COM+ partition that is to be used.

PartitionOption

获取或设置一个值,该值指示如何针对包含的工作使用分区。Gets or sets a value that indicates how partitions are used for the enclosed work.

SxsDirectory

获取或设置被包含工作的并行 (Side-by-Side) 程序集的目录。Gets or sets the directory for the side-by-side assembly for the enclosed work.

SxsName

获取或设置包含工作的并行 (Side-by-Side) 程序集的文件名。Gets or sets the file name of the side-by-side assembly for the enclosed work.

SxsOption

获取或设置一个值,该值指示如何配置并行程序集。Gets or sets a value that indicates how to configure the side-by-side assembly.

Synchronization

获取或设置一个值,该值指示组件请求的自动同步的类型。Gets or sets a value in that indicates the type of automatic synchronization requested by the component.

ThreadPool

获取或设置一个值,该值指示运行由该活动提交的工作的线程池。Gets or sets a value that indicates the thread pool which runs the work submitted by the activity.

TipUrl

获取或设置事务 Internet 协议 (TIP) URL,该 URL 允许在现有事务中运行被包含的代码。Gets or sets the Transaction Internet Protocol (TIP) URL that allows the enclosed code to run in an existing transaction.

TrackingAppName

获取或设置一个文本字符串,该文本字符串对应于报告跟踪程序信息时使用的应用程序 ID。Gets or sets a text string that corresponds to the application ID under which tracker information is reported.

TrackingComponentName

获取或设置一个文本字符串,该文本字符串对应于报告跟踪程序信息时使用的上下文名称。Gets or sets a text string that corresponds to the context name under which tracker information is reported.

TrackingEnabled

获取或设置一个值,该值指示是否启用跟踪。Gets or sets a value that indicates whether tracking is enabled.

Transaction

获取或设置一个值,该值指示如何在包含的工作中使用事务。Gets or sets a value that indicates how transactions are used in the enclosed work.

TransactionDescription

获取或设置显示事务统计时所用的名称。Gets or sets the name that is used when transaction statistics are displayed.

TransactionTimeout

获取或设置新事务的事务超时。Gets or sets the transaction time-out for a new transaction.

方法

Equals(Object)

确定指定的对象是否等于当前对象。Determines whether the specified object is equal to the current object.

(继承自 Object)
GetHashCode()

用作默认哈希函数。Serves as the default hash function.

(继承自 Object)
GetType()

获取当前实例的 TypeGets the Type of the current instance.

(继承自 Object)
MemberwiseClone()

创建当前 Object 的浅表副本。Creates a shallow copy of the current Object.

(继承自 Object)
ToString()

返回一个表示当前对象的 string。Returns a string that represents the current object.

(继承自 Object)

适用于