Właściwość ReportItemCollection.Item
Pobiera określony element raportu z kolekcja znajduje się w pozycji określonej przez indeks.W języku C#, ta właściwość jest indeksowanie dla ReportItemCollection klasy
Przestrzeń nazw: Microsoft.ReportingServices.ReportRendering
Zestaw: Microsoft.ReportingServices.ProcessingCore (w Microsoft.ReportingServices.ProcessingCore.dll)
Składnia
'Deklaracja
Public ReadOnly Default Property Item ( _
index As Integer _
) As ReportItem
Get
'Użycie
Dim instance As ReportItemCollection
Dim index As Integer
Dim value As ReportItem
value = instance(index)
public ReportItem this[
int index
] { get; }
public:
property ReportItem^ default[int index] {
ReportItem^ get (int index);
}
member Item : ReportItem
Język JScript obsługuje używanie indeksowanych właściwości, ale nie obsługuje deklarowania nowych.
Parametry
- index
Typ: System.Int32
Od zera indeks element raportu, aby odnaleźć kolekcja.
Wartość właściwości
Typ: Microsoft.ReportingServices.ReportRendering.ReportItem
A ReportItem obiektu lub wartość null, jeśli nie istnieje element określony element raportu.
Uwagi
W języku Microsoft JScript można używać właściwości indeksowanych domyślne zdefiniowane przez typ, ale nie można jawnie zdefiniować własne.Można jednak określić expando atrybut klasy jest automatycznie dostarcza właściwość domyślne indeksowane, których typ jest obiektu i którego typem indeksu jest ciąg.
Zobacz także