Class SubscriptionDataSource
Provides Subscription data to DataBoundControl implementations.
Inheritance
Implements
Inherited Members
Namespace: EPiServer.Web.WebControls
Assembly: EPiServer.dll
Version: 8.11.0Syntax
[Obsolete("The subscription feature is being phased out, it will continue to work but we do recommend not using it for new solutions")]
public class SubscriptionDataSource : GenericDataSource<UserSubscriptionInfo, List<UserSubscriptionInfo>, int>, IDataSourceMethods
Constructors
SubscriptionDataSource()
Initializes a new instance of the SubscriptionDataSource class.
Declaration
public SubscriptionDataSource()
Properties
CanDelete
Indicates whether a SubscriptionDataSource supports instance deletions which it does not.
Declaration
protected override bool CanDelete { get; }
Property Value
Type | Description |
---|---|
System.Boolean | false |
Overrides
CanInsert
Indicates whether a SubscriptionDataSource supports instance inserts which it does not.
Declaration
protected override bool CanInsert { get; }
Property Value
Type | Description |
---|---|
System.Boolean | false |
Overrides
CanUpdate
Indicates whether a SubscriptionDataSource supports instance updates which it does not.
Declaration
protected override bool CanUpdate { get; }
Property Value
Type | Description |
---|---|
System.Boolean | false |
Overrides
Language
Gets or sets the language for which subscriptions should be listed
Declaration
public string Language { get; set; }
Property Value
Type | Description |
---|---|
System.String |
PageLink
Gets or sets a reference to the root page for subscription.
Declaration
public PageReference PageLink { get; set; }
Property Value
Type | Description |
---|---|
PageReference |
SubscriptionService
Gets or sets the subscription service.
Declaration
public Injected<SubscriptionService> SubscriptionService { get; set; }
Property Value
Type | Description |
---|---|
Injected<SubscriptionService> | The subscription service. |
Methods
CreateItem(List<UserSubscriptionInfo>)
SubscriptionDataSource does not support creation of items
Declaration
protected override UserSubscriptionInfo CreateItem(List<UserSubscriptionInfo> items)
Parameters
Type | Name | Description |
---|---|---|
System.Collections.Generic.List<UserSubscriptionInfo> | items | the list of current instances in the given scope. |
Returns
Type | Description |
---|---|
UserSubscriptionInfo | NotSupportedException |
Overrides
DeleteItem(UserSubscriptionInfo)
Not supported by SubscriptionDataSource. Will throw NotSupportedException
Declaration
protected override void DeleteItem(UserSubscriptionInfo item)
Parameters
Type | Name | Description |
---|---|---|
UserSubscriptionInfo | item | The item to delete. |
Overrides
ListItems()
Lists all subscription pages
Declaration
protected override List<UserSubscriptionInfo> ListItems()
Returns
Type | Description |
---|---|
System.Collections.Generic.List<UserSubscriptionInfo> | a list of instances. |
Overrides
LoadItem(Int32)
Not supported by SubscriptionDataSource. Will throw NotSupportedException
Declaration
protected override UserSubscriptionInfo LoadItem(int key)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | key | The item to load. |
Returns
Type | Description |
---|---|
UserSubscriptionInfo | NotSupportedException |
Overrides
SaveItem(UserSubscriptionInfo)
Not supported by SubscriptionDataSource. Will throw NotSupportedException
Declaration
protected override void SaveItem(UserSubscriptionInfo item)
Parameters
Type | Name | Description |
---|---|---|
UserSubscriptionInfo | item | The item to persist. |