MPScope Class |
Namespace: Colygon.MatchPoint.Core.Expressions
public class MPScope : EvaluatorScope, IDisposable
The MPScope type exposes the following members.
Name | Description | |
---|---|---|
MPScope |
Initializes a new instance of the MPScope class based on the specified SPWeb object. Instances created
with this constructor have to be disposed using the Dispose(Boolean) method.
Use the static method MPScope.CreateDefaultScope() to create an instance that is based on the default scope. See CreateDefaultScope for more information. |
Name | Description | |
---|---|---|
UnsafeTypes | (Overrides EvaluatorScopeUnsafeTypes.) |
Name | Description | |
---|---|---|
CreateDefaultScope |
Returns a new scope based on the current execution scope or the default scope. The default scope holds a set of
variables which were initialized using the current HTTP context (if available). For instance if there is a HTTP
context available, the expression variable 'Web' points to the SPWeb object represented by the current request. If
there is no HTTP context available, context specific variables will be omitted. Since the variables are already
initialized in the default scope, the returned scope does not have to initialize the variables again. Further the scope
returned by CreateDefaultScope does not have to be disposed. The disposing is handled in the base scope (default
scope).
The constructor MPScope(SPWeb) should be used if the variables have to be initialized with an SPWeb object other than the context web. | |
Dispose | Releases all resources used by the MPScope | |
Dispose(Boolean) | Releases the unmanaged resources used by the MPScope and optionally releases the managed resources | |
Equals | Determines whether the specified object is equal to the current object. (Inherited from Object.) | |
Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.) | |
GetHashCode | Serves as the default hash function. (Inherited from Object.) | |
GetType | Gets the Type of the current instance. (Inherited from Object.) | |
InvokeField | (Overrides EvaluatorScopeInvokeField(Object, String).) | |
InvokeIndexer | (Overrides EvaluatorScopeInvokeIndexer(Object, Object).) | |
InvokeMethod | (Overrides EvaluatorScopeInvokeMethod(Object, String, Object).) | |
MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) | |
RegisterExtension | (Inherited from EvaluatorScope.) | |
ToString | Returns a string that represents the current object. (Inherited from Object.) | |
TryGetVariable | (Overrides EvaluatorScopeTryGetVariable(String, Object).) |