This topic has not yet been rated - Rate this topic

ServiceConfig Class

Specifies and configures the services that are to be active in the domain which is entered when calling Enter or creating an Activity. This class cannot be inherited.

System.Object
  System.EnterpriseServices.ServiceConfig

Namespace:  System.EnterpriseServices
Assembly:  System.EnterpriseServices (in System.EnterpriseServices.dll)
[ComVisibleAttribute(false)]
public sealed class ServiceConfig

The ServiceConfig type exposes the following members.

  Name Description
Public method ServiceConfig Initializes a new instance of the ServiceConfig class, setting the properties to configure the desired services.
Top
  Name Description
Public property Binding 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).
Public property BringYourOwnSystemTransaction Gets or sets a Transaction that represents an existing transaction that supplies the settings used to run the transaction identified by ServiceConfig.
Public property BringYourOwnTransaction Gets or sets a ITransaction that represents an existing transaction that supplies the settings used to run the transaction identified by ServiceConfig.
Public property COMTIIntrinsicsEnabled Gets or sets a value that indicates whether COM Transaction Integrator (COMTI) intrinsics are enabled.
Public property IISIntrinsicsEnabled Gets or sets a value that indicates whether Internet Information Services (IIS) intrinsics are enabled.
Public property Inheritance 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.
Public property IsolationLevel Gets or sets the isolation level of the transaction.
Public property PartitionId Gets or sets the GUID for the COM+ partition that is to be used.
Public property PartitionOption Gets or sets a value that indicates how partitions are used for the enclosed work.
Public property SxsDirectory Gets or sets the directory for the side-by-side assembly for the enclosed work.
Public property SxsName Gets or sets the file name of the side-by-side assembly for the enclosed work.
Public property SxsOption Gets or sets a value that indicates how to configure the side-by-side assembly.
Public property Synchronization Gets or sets a value in that indicates the type of automatic synchronization requested by the component.
Public property ThreadPool Gets or sets a value that indicates the thread pool which runs the work submitted by the activity.
Public property TipUrl Gets or sets the Transaction Internet Protocol (TIP) URL that allows the enclosed code to run in an existing transaction.
Public property TrackingAppName Gets or sets a text string that corresponds to the application ID under which tracker information is reported.
Public property TrackingComponentName Gets or sets a text string that corresponds to the context name under which tracker information is reported.
Public property TrackingEnabled Gets or sets a value that indicates whether tracking is enabled.
Public property Transaction Gets or sets a value that indicates how transactions are used in the enclosed work.
Public property TransactionDescription Gets or sets the name that is used when transaction statistics are displayed.
Public property TransactionTimeout Gets or sets the transaction time-out for a new transaction.
Top
  Name Description
Public method Equals(Object) Determines whether the specified Object is equal to the current Object. (Inherited from Object.)
Protected method Finalize Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.)
Public method GetHashCode Serves as a hash function for a particular type. (Inherited from Object.)
Public method GetType Gets the Type of the current instance. (Inherited from Object.)
Protected method MemberwiseClone Creates a shallow copy of the current Object. (Inherited from Object.)
Public method ToString Returns a string that represents the current object. (Inherited from Object.)
Top

Enter and Activity allow you to use the services configured by ServiceConfig with no need to tie those services to a component.

.NET Framework

Supported in: 4, 3.5, 3.0, 2.0, 1.1

.NET Framework Client Profile

Supported in: 4, 3.5 SP1

Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows XP SP2 x64 Edition, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
Did you find this helpful?
(1500 characters remaining)
Community Content Add
Annotations FAQ