Share via


DataSourceCollection.Item Property

Gets the data source at the specified index.

Namespace:  Microsoft.SharePoint.WebControls
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Available in Sandboxed Solutions: No

Syntax

'Declaration
Public ReadOnly Default Property Item ( _
    index As Integer _
) As IDataSource
    Get
'Usage
Dim instance As DataSourceCollection
Dim index As Integer
Dim value As IDataSource

value = instance(index)
public IDataSource this[
    int index
] { get; }

Parameters

  • index
    Type: System.Int32

    A 32-bit signed integer that specifies the index of the desired data source.

Property Value

Type: System.Web.UI.IDataSource
A IDataSource interface.

See Also

Reference

DataSourceCollection Class

DataSourceCollection Members

Microsoft.SharePoint.WebControls Namespace