Class UmbracoContextReference
Represents a reference to an UmbracoContext instance.
Inheritance
System.Object
Namespace: Umbraco.Web
Assembly: Umbraco.Web.dll
Syntax
public class UmbracoContextReference : IDisposable
Remarks
A reference points to an UmbracoContext and it may own it (when it is a root reference) or just reference it. A reference must be disposed after it has been used. Disposing does nothing if the reference is not a root reference. Otherwise, it disposes the UmbracoContext and clears the IUmbracoContextAccessor.
Properties
View SourceIsRoot
Gets a value indicating whether the reference is a root reference.
Declaration
public bool IsRoot { get; }
Property Value
Type | Description |
---|---|
System.Boolean |
Remarks
UmbracoContext
Gets the UmbracoContext.
Declaration
public UmbracoContext UmbracoContext { get; }
Property Value
Type | Description |
---|---|
UmbracoContext |
Methods
View SourceDispose()
Declaration
public void Dispose()