本文整理匯總了VB.NET中System.Web.UI.ListSourceHelper類的典型用法代碼示例。如果您正苦於以下問題:VB.NET ListSourceHelper類的具體用法?VB.NET ListSourceHelper怎麽用?VB.NET ListSourceHelper使用的例子?那麽, 這裏精選的類代碼示例或許可以為您提供幫助。
在下文中一共展示了ListSourceHelper類的1個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的VB.NET代碼示例。
示例1: GetList
#Region "Implementation of IDataSource"
Public Overridable Function GetView(viewName As String) As DataSourceView Implements IDataSource.GetView
If view Is Nothing Then
view = New SomeDataSourceView(Me)
End If
Return view
End Function 'GetView
Public Overridable Function GetViewNames() As ICollection Implements IDataSource.GetViewNames
Dim al As New ArrayList(1)
al.Add(GetView(String.Empty).Name)
Return CType( al, ICollection)
End Function 'GetViewNames
Event DataSourceChanged As EventHandler Implements IDataSource.DataSourceChanged
#End Region
#Region "Implementation of IListSource"
ReadOnly Property ContainsListCollection() As Boolean Implements IListSource.ContainsListCollection
Get
Return ListSourceHelper.ContainsListCollection(Me)
End Get
End Property
Function GetList() As IList Implements IListSource.GetList
Return ListSourceHelper.GetList(Me)
End Function 'IListSource.GetList
#End Region