Export (0) Print
Expand All

ListSourceHelper Class

Used by data source controls when implementing the members defined by the IListSource interface. This class cannot be inherited.

System.Object
  System.Web.UI.ListSourceHelper

Namespace:  System.Web.UI
Assembly:  System.Web (in System.Web.dll)

[<AbstractClass>]
[<Sealed>]
type ListSourceHelper =  class end

The ListSourceHelper type exposes the following members.

  NameDescription
Public methodStatic memberContainsListCollectionIndicates whether the specified data source control contains a collection of data source view objects.
Public methodStatic memberGetListRetrieves an IList collection of data source objects.
Top

The ListSourceHelper class is a utility class provided to simplify implementation of the IListSource interface by data source controls. Data source controls that implement the IDataSource interface but do not extend the DataSourceControl class can use the static ListSourceHelper methods in their own implementations of the methods defined by the IListSource interface. Data source controls that extend from the DataSourceControl class inherit these method implementations automatically.

The following code example demonstrates the design pattern for a data source class that implements the IListSource methods.

No code example is currently available or this language may not be supported.

.NET Framework

Supported in: 4.6, 4, 3.5, 3.0, 2.0

Windows 8.1, Windows Server 2012 R2, Windows 8, Windows Server 2012, Windows 7, Windows Vista SP2, Windows Server 2008 (Server Core Role not supported), Windows Server 2008 R2 (Server Core Role supported with SP1 or later; Itanium not supported)

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
Show:
© 2014 Microsoft