共用方式為


Item 屬性

Gets the specified Page object from the collection at the specified index. In C#, this property is the indexer for the PageCollection class.

命名空間:  Microsoft.ReportingServices.ReportRendering
組件:  Microsoft.ReportingServices.ProcessingCore (在 Microsoft.ReportingServices.ProcessingCore.dll 中)

語法

'宣告
Public Default Property Item ( _
    pageNumber As Integer _
) As Page
    Get
    Set
'用途
Dim instance As PageCollection
Dim pageNumber As Integer
Dim value As Page

value = instance(pageNumber)

instance(pageNumber) = value
public Page this[
    int pageNumber
] { get; set; }
public:
property Page^ default[int pageNumber] {
    Page^ get (int pageNumber);
    void set (int pageNumber, Page^ value);
}
member Item : Page with get, set
JScript 支援索引屬性的使用,但不支援新屬性的宣告。

參數

屬性值

型別:Microsoft.ReportingServices.ReportRendering. . :: . .Page
A Page object, or a null value if the specified Page does not exist.

備註

In Microsoft JScript, you can use the default indexed properties defined by a type, but you cannot explicitly define your own. However, specifying the expando attribute on a class automatically provides a default indexed property whose type is Object and whose index type is String.