Try our conversational search powered by Generative AI!

Class ContentDataSource

Inheritance
System.Object
ContentDataSource
Implements
System.Web.UI.IDataSource
System.Web.UI.IHierarchicalDataSource
Namespace: EPiServer.UI.WebControls.ContentDataSource
Assembly: EPiServer.UI.dll
Version: 11.20.7
Syntax
public class ContentDataSource : Control, IDataSource, IDataSourceMethods, IHierarchicalContentDataSource, IContentSource, IHierarchicalDataSource

Constructors

ContentDataSource()

Declaration
public ContentDataSource()

Properties

AccessLevel

Declaration
public AccessLevel AccessLevel { get; set; }
Property Value
Type Description
AccessLevel
Declaration
public ContentReference ContentLink { get; set; }
Property Value
Type Description
ContentReference

ContentLinkProperty

Declaration
public string ContentLinkProperty { get; set; }
Property Value
Type Description
System.String

ContentSource

Declaration
public IContentSource ContentSource { get; set; }
Property Value
Type Description
IContentSource

DataFactory

Declaration
public IContentRepository DataFactory { get; set; }
Property Value
Type Description
IContentRepository

EvaluateHasChildren

Declaration
public bool EvaluateHasChildren { get; set; }
Property Value
Type Description
System.Boolean

IncludeContentAssets

Declaration
public bool IncludeContentAssets { get; set; }
Property Value
Type Description
System.Boolean

IncludeRootItem

Declaration
public bool IncludeRootItem { get; set; }
Property Value
Type Description
System.Boolean

Items

Declaration
protected PartialList<int> Items { get; }
Property Value
Type Description
PartialList<System.Int32>

PropertyResolver

Declaration
protected Injected<PropertyResolver> PropertyResolver { get; set; }
Property Value
Type Description
Injected<PropertyResolver>

SelectParameters

Declaration
public ParameterCollection SelectParameters { get; }
Property Value
Type Description
System.Web.UI.WebControls.ParameterCollection

SelectValues

Declaration
protected IDictionary SelectValues { get; }
Property Value
Type Description
System.Collections.IDictionary

SessionId

Declaration
protected Guid SessionId { get; }
Property Value
Type Description
System.Guid

UseFallbackLanguage

Declaration
public bool UseFallbackLanguage { get; set; }
Property Value
Type Description
System.Boolean

View

Declaration
protected virtual GenericDataSourceView<ContentDataSource> View { get; }
Property Value
Type Description
GenericDataSourceView<ContentDataSource>

Methods

Delete(IDictionary)

Declaration
public virtual int Delete(IDictionary values)
Parameters
Type Name Description
System.Collections.IDictionary values
Returns
Type Description
System.Int32

GetChildren(ContentReference, Int32, Int32, out Int32)

Declaration
protected IList<IContentData> GetChildren(ContentReference pageLink, int startIndex, int maxRows, out int loaded)
Parameters
Type Name Description
ContentReference pageLink
System.Int32 startIndex
System.Int32 maxRows
System.Int32 loaded
Returns
Type Description
System.Collections.Generic.IList<IContentData>
Declaration
protected virtual ContentReference GetContentLink()
Returns
Type Description
ContentReference

GetFilteredChildren(ContentReference)

Declaration
public IList<IContentData> GetFilteredChildren(ContentReference contentLink)
Parameters
Type Name Description
ContentReference contentLink
Returns
Type Description
System.Collections.Generic.IList<IContentData>

GetHierarchicalView(String)

Declaration
public HierarchicalDataSourceView GetHierarchicalView(string viewPath)
Parameters
Type Name Description
System.String viewPath
Returns
Type Description
System.Web.UI.HierarchicalDataSourceView

GetView(String)

Declaration
public virtual DataSourceView GetView(string viewName)
Parameters
Type Name Description
System.String viewName
Returns
Type Description
System.Web.UI.DataSourceView

GetViewNames()

Declaration
public ICollection GetViewNames()
Returns
Type Description
System.Collections.ICollection

HierarchicalSelect(String)

Declaration
public virtual ContentHierarchicalEnumerable HierarchicalSelect(string viewPath)
Parameters
Type Name Description
System.String viewPath
Returns
Type Description
ContentHierarchicalEnumerable

Insert(IDictionary)

Declaration
public virtual int Insert(IDictionary values)
Parameters
Type Name Description
System.Collections.IDictionary values
Returns
Type Description
System.Int32

IsRoot(IContentData)

Declaration
public virtual bool IsRoot(IContentData content)
Parameters
Type Name Description
IContentData content
Returns
Type Description
System.Boolean

OnDataSourceChanged(EventArgs)

Declaration
protected virtual void OnDataSourceChanged(EventArgs e)
Parameters
Type Name Description
System.EventArgs e

OnInit(EventArgs)

Declaration
protected override void OnInit(EventArgs e)
Parameters
Type Name Description
System.EventArgs e

OnLoad(EventArgs)

Declaration
protected override void OnLoad(EventArgs e)
Parameters
Type Name Description
System.EventArgs e

Select(DataSourceSelectArguments)

Declaration
public virtual IEnumerable Select(DataSourceSelectArguments arguments)
Parameters
Type Name Description
System.Web.UI.DataSourceSelectArguments arguments
Returns
Type Description
System.Collections.IEnumerable

Update(IDictionary)

Declaration
public virtual int Update(IDictionary values)
Parameters
Type Name Description
System.Collections.IDictionary values
Returns
Type Description
System.Int32

Events

DataSourceChanged

Declaration
public event EventHandler DataSourceChanged
Event Type
Type Description
System.EventHandler

Explicit Interface Implementations

IContentSource.CurrentContent

Declaration
IContent IContentSource.CurrentContent { get; }
Returns
Type Description
IContent

IContentSource.Get<T>(ContentReference)

Declaration
T IContentSource.Get<T>(ContentReference contentLink)
    where T : IContentData
Parameters
Type Name Description
ContentReference contentLink
Returns
Type Description
T
Type Parameters
Name Description
T

IContentSource.GetChildren<T>(ContentReference)

Declaration
IEnumerable<T> IContentSource.GetChildren<T>(ContentReference contentLink)
    where T : IContentData
Parameters
Type Name Description
ContentReference contentLink
Returns
Type Description
System.Collections.Generic.IEnumerable<T>
Type Parameters
Name Description
T

Implements

System.Web.UI.IDataSource
System.Web.UI.IHierarchicalDataSource

Extension Methods