SPFieldValidationException Constructor (SerializationInfo, StreamingContext)
Initializes a new instance of the SPFieldValidationException class based on the specified information about serialization and streaming context.
Namespace: Microsoft.SharePoint
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Available in Sandboxed Solutions: Yes
Available in SharePoint Online
Syntax
'Declaration
Protected Sub New ( _
serializationInfo As SerializationInfo, _
context As StreamingContext _
)
'Usage
Dim serializationInfo As SerializationInfo
Dim context As StreamingContext
Dim instance As New SPFieldValidationException(serializationInfo, _
context)
protected SPFieldValidationException(
SerializationInfo serializationInfo,
StreamingContext context
)
Parameters
serializationInfo
Type: System.Runtime.Serialization.SerializationInfoThe serialization object to which the information about the exception is added.
context
Type: System.Runtime.Serialization.StreamingContextThe contextual information about the source of the exception or the destination for the exception for serialization.
See Also
Reference
SPFieldValidationException Class
SPFieldValidationException Members