3.2.5.88.2.2.2 GetByStringId
Return Type: Microsoft.SharePoint.Client.ListItem
Returns the list item with either the specified list item identifier or the specified identifier for an instance of an external content type.
Parameters:
sId: Specifies the list item identifier, or if the list is an external list, specifies the identifier for an instance of an external content type as specified in[MS-ECTPWPS] section 3.1.4.1.2.1.
Type: CSOM String
Error Code |
Error Type Name |
Condition |
---|---|---|
-2130575338 |
Microsoft.SharePoint.SPException |
List item does not exist, and the list is an external list. |
-1 |
System.FormatException |
sId is a list item identifier with invalid format, and the list is NOT an external list. |
-1 |
System.OverflowException |
The list does NOT have an external data source and the specified ID is an integer requiring more than 32 bits to represent. |