For a list of all members of this type, see ServiceDomain Members.
[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
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
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.
Platforms: Windows Server 2003 family
Assembly: System.Enterpriseservices (in System.Enterpriseservices.dll)