The requested page is not available for the requested platform. You are viewing the content for .NET Framework 4.5.2+ platform.
.NET Framework 4.5.2+
.NET Framework 4.5.2+
.NET Standard 2.0+
.NET Core 3.0+

XPObjectSpace.CreateParseCriteriaScope() Method

Used when parsing a CriteriaOperator represented by a string and containing persistent objects.

Namespace: DevExpress.ExpressApp.Xpo

Assembly: DevExpress.ExpressApp.Xpo.v19.2.dll

Declaration

public override IDisposable CreateParseCriteriaScope()
Public Overrides Function CreateParseCriteriaScope As IDisposable
public override IDisposable CreateParseCriteriaScope()
Public Overrides Function CreateParseCriteriaScope As IDisposable
public override IDisposable CreateParseCriteriaScope()
Public Overrides Function CreateParseCriteriaScope As IDisposable

Returns

Type Description
IDisposable

An IDisposable object used to restore persistent objects from a serialized string.

Returns

Type Description
IDisposable

An IDisposable object used to restore persistent objects from a serialized string.

Returns

Type Description
IDisposable

An IDisposable object used to restore persistent objects from a serialized string.

Remarks

Use this method when you need to parse a CriteriaOperator from a string and you expect that it contains references to persistent objects.

CriteriaOperator criteria;
using(IDisposable scope = objectSpace.CreateParseCriteriaScope()) {
  criteria = CriteriaOperator.Parse(filterString);
}

Persistent objects are serialized as a part of a CriteriaOperator in a special format and a 'scope' object is necessary to restore objects from a serialized string.

See Also