SPFieldValueException Constructor (SPListItem, SPField, String, Exception)
Initializes a new instance of the SPFieldValueException class with the specified list item, field, message, and exception.
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, _
innerException As Exception _
)
'Usage
Dim item As SPListItem
Dim field As SPField
Dim message As String
Dim innerException As Exception
Dim instance As New SPFieldValueException(item, field, _
message, innerException)
public SPFieldValueException(
SPListItem item,
SPField field,
string message,
Exception innerException
)
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.
innerException
Type: System.ExceptionThe exception that caused the current exception.
Exceptions
Exception | Condition |
---|---|
ArgumentNullException | item or field is null . |