SPListDataValidationException.GetObjectData method
Saves information about the exception for serialization.
Namespace: Microsoft.SharePoint
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Syntax
'Declaration
<SecurityPermissionAttribute(SecurityAction.Demand, SerializationFormatter := True)> _
Public Overrides Sub GetObjectData ( _
serializationInfo As SerializationInfo, _
context As StreamingContext _
)
'Usage
Dim instance As SPListDataValidationException
Dim serializationInfo As SerializationInfo
Dim context As StreamingContext
instance.GetObjectData(serializationInfo, _
context)
[SecurityPermissionAttribute(SecurityAction.Demand, SerializationFormatter = true)]
public override void GetObjectData(
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.
Implements
ISerializable.GetObjectData(SerializationInfo, StreamingContext)
_Exception.GetObjectData(SerializationInfo, StreamingContext)
Exceptions
Exception | Condition |
---|---|
ArgumentNullException | serializationInfo is null . |
Remarks
This method adds information about the exception for serialization. During deserialization, the exception object is reconstituted from serializationInfo.
See also
Reference
SPListDataValidationException class