Class EnterpriseSettingsExtensions
Extends IEnterpriseSettings with convinent methods.
Inheritance
System.Object
EnterpriseSettingsExtensions
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: EPiServer.Core
Assembly: EPiServer.dll
Version: 10.10.4Syntax
public static class EnterpriseSettingsExtensions
Methods
GetSettingsFromPage(IEnterpriseSettings, ContentReference)
Gets the (Enterprise) Settings from a PageReference object. This is done by traversing the page tree upwards from pageLink until a Page which has an Enterprise config's StartPage set as current page, or the StartPage of the current IIsInstanceId.
Declaration
public static Settings GetSettingsFromPage(this IEnterpriseSettings enterpriseSettings, ContentReference contentLink)
Parameters
Type | Name | Description |
---|---|---|
IEnterpriseSettings | enterpriseSettings | The page enterprise service. |
ContentReference | contentLink | The content link. |
Returns
Type | Description |
---|---|
Settings | An Settings instance |