Share via


SPSimpleItem.Item property (String)

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

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

Syntax

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

value = instance(fieldName)

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

Parameters

  • fieldName
    Type: System.String

    The name of the associated field.

Property value

Type: System.Object
The collection item specified by the given field name.

See also

Reference

SPSimpleItem class

SPSimpleItem members

Item overload

Microsoft.SharePoint namespace