SPItem.Item property (String)

Gets or sets a field object for the item based on the specified internal name of the field.

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

Syntax

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

value = instance(fieldName)

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

Parameters

  • fieldName
    Type: System.String

    A string containing the internal name of the field.

Property value

Type: System.Object
An object that represents the field.

See also

Reference

SPItem class

SPItem members

Item overload

Microsoft.SharePoint namespace