System.Web.UI.WebControls.XmlDataSource Members

The members of System.Web.UI.WebControls.XmlDataSource are listed below.

See Also: Inherited members from System.Web.UI.HierarchicalDataSourceControl

Public Constructors

Creates a new instance of the System.Web.UI.WebControls.XmlDataSource class.

Public Properties

CacheDurationint.

Gets or sets the length of time, in seconds, that the data source control caches data it has retrieved.

CacheExpirationPolicySystem.Web.UI.DataSourceCacheExpiry.

Gets or sets the cache expiration policy that is combined with the cache duration to describe the caching behavior of the cache that the data source control uses.

CacheKeyDependencystring.

Gets or sets a user-defined key dependency that is linked to all data cache objects created by the data source control. All cache objects explicitly expire when the key expires.

Datastring.

Gets or sets a block of XML data that the data source control binds to.

DataFilestring.

Specifies the file name of an XML file that the data source binds to.

EnableCachingbool.

Gets or sets a value indicating whether the System.Web.UI.WebControls.XmlDataSource control has data caching enabled.

Transformstring.

Gets or sets a block of Extensible Stylesheet Language (XSL) data that defines an XSLT transformation to be performed on the XML data managed by the System.Web.UI.WebControls.XmlDataSource control.

TransformArgumentListSystem.Xml.Xsl.XsltArgumentList.

Provides a list of XSLT arguments that are used with the style sheet defined by the XmlDataSource.Transform or XmlDataSource.TransformFile properties to perform a transformation on the XML data.

TransformFilestring.

Specifies the file name of an Extensible Stylesheet Language (XSL) file (.xsl) that defines an XSLT transformation to be performed on the XML data managed by the System.Web.UI.WebControls.XmlDataSource control.

XPathstring.

Specifies an XPath expression to be applied to the XML data contained by the XmlDataSource.Data property or by the XML file indicated by the XmlDataSource.DataFile property.

Public Methods

GetXmlDocument() : System.Xml.XmlDocument

Loads the XML data into memory, either directly from the underlying data storage or from the cache, and returns it in the form of an System.Xml.XmlDataDocument object.

Save()

Saves the XML data currently held in memory by the System.Web.UI.WebControls.XmlDataSource control to disk if the XmlDataSource.DataFile property is set.

Protected Methods

override
GetHierarchicalView(string) : System.Web.UI.HierarchicalDataSourceView

Gets the data source view object for the System.Web.UI.WebControls.XmlDataSource control. The viewPath parameter can be an XPath expression.

OnTransforming(EventArgs)

Raises the XmlDataSource.Transforming event before the System.Web.UI.WebControls.XmlDataSource control performs an XSLT transformation on its XML data.

Public Events

Transforming

Occurs before the style sheet that is defined by the XmlDataSource.Transform property or identified by the XmlDataSource.TransformFile property is applied to XML data.

Explicitly Implemented Interface Members

[read-only]
System.ComponentModel.IListSource.ContainsListCollectionbool.

For a description of this member, see System.ComponentModel.IListSource.ContainsListCollection.

System.ComponentModel.IListSource.GetList

For a description of this member, see System.ComponentModel.IListSource.GetList.

System.Web.UI.IDataSource.GetView

Gets the named data source view associated with the data source control.

System.Web.UI.IDataSource.GetViewNames

For a description of this member, see System.Web.UI.IDataSource.GetViewNames.