Skip to end of metadata
Go to start of metadata

Represents the linked xml document to intersoft data-bound controls.

Definition

public class XmlDataSource : ISDataSourceControl, IDataSource

Summary

The following table summarizes the members exposed in this class.

Public Constructors

XmlDataSource Constructor() Initializes a new instance of the XmlDataSource class.

Public Properties

Data Gets or sets the xml string that contains the collection of data.
DataFile Gets or sets the xml file that contains the collection of data.
Descendants Gets or sets the descendants filter to be selected.
LoadingMode Gets or sets the loading mode behavior.
View Gets or sets the xml datasource view.

Protected Properties

Product Product info.

Public Methods

GetView()
GetView(string)
GetViewNames()
GetXmlDocument()
InvalidateAllCache() Invalidate all current cache allocation.
InvalidateCache(string) Invalidate cache stored with the provided key.
InvalidateCache(string, int, int) Invalidate cache stored with the provided key.
OnApplyTemplate()
Select() Perform READ operation to XML string provided in Data property, or XML file defined in DataFile property.
Select(DataSourceSelectArguments)

Events

Selected Occurs when an Select operation has completed.
Selecting Occurs before a Select operation.

Public Constructors

public XmlDataSource()

Initializes a new instance of the XmlDataSource class.

Public Properties

public string Data { get; set; }

Gets or sets the xml string that contains the collection of data.

public string DataFile { get; set; }

Gets or sets the xml file that contains the collection of data.

public string Descendants { get; set; }

Gets or sets the descendants filter to be selected.

public LoadingMode LoadingMode { get; set; }

Gets or sets the loading mode behavior.

public XmlDataSourceView View { get; }

Gets or sets the xml datasource view.

Protected Properties

protected ProductInfo Product { get; }

Product info.

Public Methods

public DataSourceView GetView()

public DataSourceView GetView(string name)

Parameters

name

public ICollection<string> GetViewNames()

public XDocument GetXmlDocument()

public void InvalidateAllCache()

Invalidate all current cache allocation.

public void InvalidateCache(string cacheKey)

Invalidate cache stored with the provided key.

Parameters

cacheKey Cache key

public void InvalidateCache(string parentKey, int startRowIndex, int maximumRows)

Invalidate cache stored with the provided key.

Parameters

parentKey Cache key
startRowIndex Start row index
maximumRows Minimum rows

public void OnApplyTemplate()

public IEnumerable Select()

Perform READ operation to XML string provided in Data property, or XML file defined in DataFile property.

public IEnumerable Select(DataSourceSelectArguments selectArgument)

Parameters

selectArgument

Events

public event DataSourceStatusEventHandler Selected

Occurs when an Select operation has completed.

public event XmlDataSourceSelectingEventHandler Selecting

Occurs before a Select operation.

  • No labels