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
[<System.Runtime.InteropServices.ComVisible(false)>]
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

取得或設定繫結選項,指出由活動送出的所有工作是否都要繫結至唯一的單一執行緒 Apartment (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 Transaction Integrator (COMTI) 內建。Gets or sets a value that indicates whether COM Transaction Integrator (COMTI) intrinsics are enabled.

IISIntrinsicsEnabled

取得或設定值,指出是否啟用網際網路資訊服務 (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

取得或設定交易的隔離等級 (Isolation Level)。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

取得或設定被封入工作的並存組件 (Assembly) 目錄。Gets or sets the directory for the side-by-side assembly for the enclosed work.

SxsName

取得或設定被封入工作之並存組件的檔案名稱。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

取得或設定 Transaction Internet Protocol (TIP) URL,允許被封入程式碼於現有交易中執行。Gets or sets the Transaction Internet Protocol (TIP) URL that allows the enclosed code to run in an existing transaction.

TrackingAppName

取得或設定文字字串,對應至用於報告 Tracker 資訊的應用程式 ID。Gets or sets a text string that corresponds to the application ID under which tracker information is reported.

TrackingComponentName

取得或設定文字字串,對應至用於報告 Tracker 資訊的內容名稱。Gets or sets a text string that corresponds to the context name under which tracker information is reported.

TrackingEnabled

取得或設定值,指出是否啟用追蹤 (Tracking)。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()

傳回代表目前物件的字串。Returns a string that represents the current object.

(繼承來源 Object)

適用於