MPInstanceScope Class |
Namespace: Colygon.MatchPoint.Core
public sealed class MPInstanceScope : IDisposable
The MPInstanceScope type exposes the following members.
Name | Description | |
---|---|---|
MPInstanceScope | Initializes a new MPInstanceScope instance. |
Name | Description | |
---|---|---|
Dispose | Releases all resources used by the MPInstanceScope | |
Equals | 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.) | |
ToString | Returns a string that represents the current object. (Inherited from Object.) |
An instance scope also holds instances of all disposable objects (only if assigned by using the MatchPoint API, i.e. OpenWeb(String, SPUserToken, Boolean). These objects will be automatically disposed when the instance scope is disposed. This functionality is used i.e. within the expression engine since it is not possible to dispose objects within a MatchPoint expression.