Class ContentDataSource
Inheritance
System.Object
ContentDataSource
Implements
System.Web.UI.IDataSource
System.Web.UI.IHierarchicalDataSource
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
ContentLink
Declaration
public ContentReference ContentLink { get; set; }
Property Value
ContentLinkProperty
Declaration
public string ContentLinkProperty { get; set; }
Property Value
Type |
Description |
System.String |
|
ContentSource
Declaration
public IContentSource ContentSource { get; set; }
Property Value
DataFactory
Declaration
public IContentRepository DataFactory { get; set; }
Property Value
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
PropertyResolver
Declaration
protected Injected<PropertyResolver> PropertyResolver { get; set; }
Property Value
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
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> |
|
GetContentLink()
Declaration
protected virtual ContentReference GetContentLink()
Returns
GetFilteredChildren(ContentReference)
Declaration
public IList<IContentData> GetFilteredChildren(ContentReference contentLink)
Parameters
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
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
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
IContentSource.Get<T>(ContentReference)
Declaration
T IContentSource.Get<T>(ContentReference contentLink)
where T : IContentData
Parameters
Returns
Type Parameters
IContentSource.GetChildren<T>(ContentReference)
Declaration
IEnumerable<T> IContentSource.GetChildren<T>(ContentReference contentLink)
where T : IContentData
Parameters
Returns
Type |
Description |
System.Collections.Generic.IEnumerable<T> |
|
Type Parameters
Implements
System.Web.UI.IDataSource
System.Web.UI.IHierarchicalDataSource
Extension Methods