Assembly: System.EnterpriseServices (in System.EnterpriseServices.dll)
Thetype exposes the following members.
|Enter||Creates the context specified by the ServiceConfig object and pushes it onto the context stack to become the current context.|
|Equals(Object)||Determines whether the specified object is equal to the current object. (Inherited from Object.)|
|GetHashCode||Serves as the default hash function. (Inherited from Object.)|
|GetType||Gets the Type of the current instance. (Inherited from Object.)|
|Leave||Triggers the server and then the client side policies as if a method call were returning. The current context is then popped from the context stack, and the context that was running when Enter was called becomes the current context.|
|ToString||Returns a string that represents the current object. (Inherited from Object.)|
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.
Windows 8.1, Windows Server 2012 R2, Windows 8, Windows Server 2012, Windows 7, Windows Vista SP2, Windows Server 2008 (Server Core Role not supported), Windows Server 2008 R2 (Server Core Role supported with SP1 or later; Itanium not supported)
The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.