SPFieldValueException Constructor (SPListItem, SPField, String)
Initializes a new instance of the SPFieldValueException class with the specified list item, field, and message.
Namespace: Microsoft.SharePoint
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Available in Sandboxed Solutions: Yes
Available in SharePoint Online
Syntax
'Declaration
Public Sub New ( _
item As SPListItem, _
field As SPField, _
message As String _
)
'Usage
Dim item As SPListItem
Dim field As SPField
Dim message As String
Dim instance As New SPFieldValueException(item, field, _
message)
public SPFieldValueException(
SPListItem item,
SPField field,
string message
)
Parameters
item
Type: Microsoft.SharePoint.SPListItemThe list item in which the exception occurred.
field
Type: Microsoft.SharePoint.SPFieldThe field in which the exception occurred.
message
Type: System.StringA message that describes the reason for the exception.
Exceptions
Exception | Condition |
---|---|
ArgumentNullException | item or field is null . |