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)
Available in Sandboxed Solutions: Yes
Available in SharePoint Online
Syntax
'Declaration
Public MustOverride Property Item ( _
fieldName As String _
) As Object
Get
Set
'Usage
Dim instance As SPItem
Dim fieldName As String
Dim value As Object
value = instance.Item(fieldName)
instance.Item(fieldName) = value
public abstract Object this[
string fieldName
] { get; set; }
Parameters
fieldName
Type: System.StringA string containing the internal name of the field.
Property Value
Type: System.Object
An object that represents the field.