Share via


SPDuplicateValuesFoundException.GetObjectData Method

Saves information about the exception for serialization.

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 ( _
    si As SerializationInfo, _
    context As StreamingContext _
)
'Usage
Dim instance As SPDuplicateValuesFoundException
Dim si As SerializationInfo
Dim context As StreamingContext

instance.GetObjectData(si, context)
[SecurityPermissionAttribute(SecurityAction.Demand, SerializationFormatter = true)]
public override void GetObjectData(
    SerializationInfo si,
    StreamingContext context
)

Parameters

Implements

ISerializable.GetObjectData(SerializationInfo, StreamingContext)
_Exception.GetObjectData(SerializationInfo, StreamingContext)

Remarks

This method adds information about the exception for serialization. During deserialization, the exception is reconstituted from si.

See Also

Reference

SPDuplicateValuesFoundException Class

SPDuplicateValuesFoundException Members

Microsoft.SharePoint Namespace