Share via


SPException.GetObjectData method

This member has a SecurityCriticalAttribute attribute, which restricts it to internal use by the .NET Framework for Silverlight class library. Application code that uses this member throws a MethodAccessException.

[SECURITY CRITICAL]

Saves information about the exception for serialization.

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

Syntax

[SecurityCriticalAttribute]
public override void GetObjectData(
    SerializationInfo si,
    StreamingContext context
)

Parameters

Implements

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

See also

Reference

SPException class

SPException members

Microsoft.SharePoint namespace