Export (0) Print
Expand All
This topic has not yet been rated - Rate this topic

ServiceDomain Class

Note: This namespace, class, or member is supported only in version 1.1 of the .NET Framework.

Allows a code segment identified by Enter 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.

For a list of all members of this type, see ServiceDomain Members.

System.Object
   System.EnterpriseServices.ServiceDomain

[Visual Basic]
<ComVisible(False)>
NotInheritable Public Class ServiceDomain
[C#]
[ComVisible(false)]
public sealed class ServiceDomain
[C++]
[ComVisible(false)]
public __gc __sealed class ServiceDomain
[JScript]
public
   ComVisible(false)
class ServiceDomain

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Remarks

The Enter and Leave methods are used in pairs to surround code that can then use COM+ services. Code that is enclosed between calls to Enter and Leave runs in its own context and behaves as if it were a method that is called on an object created within the context. The Enter and Leave pairs can be nested. It is up to the user to make sure that pairs of calls are balanced so that every call to Leave matches a previous call to Enter.

Requirements

Namespace: System.EnterpriseServices

Platforms: Windows Server 2003 family

Assembly: System.Enterpriseservices (in System.Enterpriseservices.dll)

See Also

ServiceDomain Members | System.EnterpriseServices Namespace

Show:
© 2014 Microsoft. All rights reserved.