Condividi tramite


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

  • message
    Type: System.String

    A message that describes the reason for the exception.

  • innerException
    Type: System.Exception

    The exception that caused the current exception.

Exceptions

Exception Condition
ArgumentNullException

item or field is null .

See Also

Reference

SPFieldValueException Class

SPFieldValueException Members

SPFieldValueException Overload

Microsoft.SharePoint Namespace