次の方法で共有


SPSimpleItem.Item property (Int32)

Gets or sets the value of the list item field based on the specified index value.

Namespace:  Microsoft.SharePoint
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)

Syntax

'Declaration
Public Overrides Default Property Item ( _
    index As Integer _
) As Object
    Get
    Set
'Usage
Dim instance As SPSimpleItem
Dim index As Integer
Dim value As Object

value = instance(index)

instance(index) = value
public override Object this[
    int index
] { get; set; }

Parameters

  • index
    Type: System.Int32

    The zero-based index of the field.

Property value

Type: System.Object
The value of the field that corresponds to the given index.

See also

Reference

SPSimpleItem class

SPSimpleItem members

Item overload

Microsoft.SharePoint namespace