SPFieldValueException.GetObjectData Method
Adds information about the exception to the specified serialization information.
Namespace: Microsoft.SharePoint
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Available in Sandboxed Solutions: Yes
Available in SharePoint Online
Syntax
'Declaration
<SecurityPermissionAttribute(SecurityAction.Demand, SerializationFormatter := True)> _
Public Overrides Sub GetObjectData ( _
serializationInfo As SerializationInfo, _
context As StreamingContext _
)
'Usage
Dim instance As SPFieldValueException
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 information that holds the content of the SPFieldValueException object.
context
Type: System.Runtime.Serialization.StreamingContextThe context about the source or the destination for serialization.
Implements
ISerializable.GetObjectData(SerializationInfo, StreamingContext)
_Exception.GetObjectData(SerializationInfo, StreamingContext)
Remarks
This method adds information about the SPFieldValueException object for serialization. During deserialization, the object is reconstituted from that information.