Share via


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

  • message
    Type: System.String

    A message that describes the reason for the exception.

Exceptions

Exception Condition
ArgumentNullException

item or field is null .

See Also

Reference

SPFieldValueException Class

SPFieldValueException Members

SPFieldValueException Overload

Microsoft.SharePoint Namespace