Click or drag to resize

MPScope Class

Provides a context for evaluating expressions.
Remarks
The oob expression variables of MatchPoint, as well as registered custom expression variables are automatically provided.
Inheritance Hierarchy

Namespace:  Colygon.MatchPoint.Core.Expressions
Assembly:  Colygon.MatchPoint (in Colygon.MatchPoint.dll) Version: 2019.2.1.0
Syntax
C#
public class MPScope : EvaluatorScope, IDisposable

The MPScope type exposes the following members.

Constructors
  NameDescription
Public methodMPScope
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.
Top
Properties
Methods
  NameDescription
Public methodStatic memberCreateDefaultScope
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.
Public methodDispose
Releases all resources used by the MPScope
Protected methodDispose(Boolean)
Releases the unmanaged resources used by the MPScope and optionally releases the managed resources
Public methodEquals
Determines whether the specified object is equal to the current object.
(Inherited from Object.)
Protected methodFinalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object.)
Public methodGetHashCode
Serves as the default hash function.
(Inherited from Object.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Protected methodInvokeField (Overrides EvaluatorScopeInvokeField(Object, String).)
Protected methodInvokeIndexer (Overrides EvaluatorScopeInvokeIndexer(Object, Object).)
Protected methodInvokeMethod (Overrides EvaluatorScopeInvokeMethod(Object, String, Object).)
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Protected methodRegisterExtension (Inherited from EvaluatorScope.)
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Protected methodTryGetVariable (Overrides EvaluatorScopeTryGetVariable(String, Object).)
Top
Fields
  NameDescription
Public fieldVariables
Top
See Also