DataSources.Item Property
Gets the object at the specified index. In C#, this property is the indexer for the DataSourceRef class.
Namespace CrystalDecisions.Web Assembly CrystalDecisions.Web (CrystalDecisions.Web.dll)
Syntax
'Declaration
Public Overrideable Property Item ( _
ByVal index As Integer _
) As CrystalDecisions.Web.DataSourceRef
public virtual CrystalDecisions.Web.DataSourceRef this [
int index
]{get; set;}
Parameters
- index
Property Value
The value in the collection at the specified index.
Remarks
This property allows you to access a specific item in the collection. The item is referenced using a numeric, zero-based index.
The property name Item does not exist for C#. To access an item in a collection using C#, use the syntax: collection[0].
Example
This example shows how to get a DataSourceRef object from a DataSources object.
'Declaration
Private Function GetDataSourceRef(ByVal myDataSources As DataSources, ByVal myIndex As Integer) _
As DataSourceRef
GetDataSourceRef = myDataSources.Item(myIndex)
End Function
private DataSourceRef GetDataSourceRef(DataSources dataSources, int index)
{
return dataSources[index];
}
Version Information
Crystal Reports Basic for Visual Studio 2008
Supported since: Crystal Reports for Visual Studio 2005
See Also
Reference
DataSources Class
DataSources Members
CrystalDecisions.Web Namespace