Share via


SPUserCodeSolutionProxiedException.GetObjectData method

Adds information about the exception to the specified serialized information.

Namespace:  Microsoft.SharePoint.UserCode
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)

Syntax

'Declaration
<SecurityPermissionAttribute(SecurityAction.Demand, SerializationFormatter := True)> _
<SharePointPermissionAttribute(SecurityAction.Demand, ObjectModel := True)> _
Public Overrides Sub GetObjectData ( _
    info As SerializationInfo, _
    context As StreamingContext _
)
'Usage
Dim instance As SPUserCodeSolutionProxiedException
Dim info As SerializationInfo
Dim context As StreamingContext

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

Parameters

Implements

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

Remarks

This override adds the stack trace and type name information to the information targeted for serialization. During deserialization, the exception is reconstituted from the info transmitted over the stream.

See also

Reference

SPUserCodeSolutionProxiedException class

SPUserCodeSolutionProxiedException members

Microsoft.SharePoint.UserCode namespace