Interface IScope
Represents a scope.
Namespace:System.Dynamic.ExpandoObject
Assembly:Umbraco.Core.dll
Syntax
public interface IScope : IDisposable, IInstanceIdentifiable
Properties
Database
Gets the scope database.
Declaration
UmbracoDatabase Database { get; }
Property Value
Type | Description |
---|---|
UmbracoDatabase |
Events
Gets the event manager
Declaration
IEventDispatcher Events { get; }
Property Value
Type | Description |
---|---|
IEventDispatcher |
IsolatedRuntimeCache
Gets the isolated cache.
Declaration
IsolatedRuntimeCache IsolatedRuntimeCache { get; }
Property Value
Type | Description |
---|---|
IsolatedRuntimeCache |
Messages
Gets the scope event messages.
Declaration
EventMessages Messages { get; }
Property Value
Type | Description |
---|---|
EventMessages |
RepositoryCacheMode
Gets the repository cache mode.
Declaration
RepositoryCacheMode RepositoryCacheMode { get; }
Property Value
Type | Description |
---|---|
RepositoryCacheMode |
Methods
Complete()
Completes the scope.
Declaration
bool Complete()
Returns
Type | Description |
---|---|
System.Boolean | A value indicating whether the scope has been successfully completed. |
Remarks
Can return false if any child scope has not completed.