Class UmbracoContextReference
Represents a reference to an Umbraco
Inheritance
System.Object
Namespace: Umbraco.Cms.Core
Assembly: Umbraco.Core.dll
Syntax
public class UmbracoContextReference : IDisposable
Remarks
A reference points to an Umbraco
Constructors
View SourceUmbracoContextReference(IUmbracoContext, Boolean, IUmbracoContextAccessor)
Initializes a new instance of the Umbraco
Declaration
public UmbracoContextReference(IUmbracoContext umbracoContext, bool isRoot, IUmbracoContextAccessor umbracoContextAccessor)
Parameters
Type | Name | Description |
---|---|---|
IUmbraco |
umbracoContext | |
System. |
isRoot | |
IUmbraco |
umbracoContextAccessor |
Properties
View SourceIsRoot
Gets a value indicating whether the reference is a root reference.
Declaration
public bool IsRoot { get; }
Property Value
Type | Description |
---|---|
System. |
UmbracoContext
Gets the Umbraco
Declaration
public IUmbracoContext UmbracoContext { get; }
Property Value
Type | Description |
---|---|
IUmbraco |
Methods
View SourceDispose()
Declaration
public void Dispose()
Dispose(Boolean)
Declaration
protected virtual void Dispose(bool disposing)
Parameters
Type | Name | Description |
---|---|---|
System. |
disposing |