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
'Declaration
<SecurityCriticalAttribute> _
Public Overrides Sub GetObjectData ( _
si As SerializationInfo, _
context As StreamingContext _
)
'Usage
Dim instance As SPException
Dim si As SerializationInfo
Dim context As StreamingContext
instance.GetObjectData(si, context)
[SecurityCriticalAttribute]
public override void GetObjectData(
SerializationInfo si,
StreamingContext context
)
Parameters
si
Type: System.Runtime.Serialization.SerializationInfoThe object that holds the serialized object data about the exception being thrown.
context
Type: System.Runtime.Serialization.StreamingContextThe object that contains contextual information about the source or destination.
Implements
ISerializable.GetObjectData(SerializationInfo, StreamingContext)
_Exception.GetObjectData(SerializationInfo, StreamingContext)