Delen via


SPItemKey.Key Property

Gets or sets a key that identifies a list item.

Namespace:  Microsoft.SharePoint.Workflow
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Available in Sandboxed Solutions: Yes
Available in SharePoint Online

Syntax

'Declaration
Public Property Key As String
    Get
    Set
'Usage
Dim instance As SPItemKey
Dim value As String

value = instance.Key

instance.Key = value
public string Key { get; set; }

Property Value

Type: System.String
A string that identifies a list item.

Remarks

If the item is from a list that has an external data source, the value is the external list item identifier; otherwise, it is the string representation of the value of the SPListItem.ID property.

See Also

Reference

SPItemKey Class

SPItemKey Members

Microsoft.SharePoint.Workflow Namespace