SPInvalidLookupValuesException.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 SPInvalidLookupValuesException
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
si
Type: System.Runtime.Serialization.SerializationInfoThe serialization object to which information about the exception is added.
context
Type: System.Runtime.Serialization.StreamingContextThe contextual information about the source or destination.
Implements
ISerializable.GetObjectData(SerializationInfo, StreamingContext)
_Exception.GetObjectData(SerializationInfo, StreamingContext)
Exceptions
Exception | Condition |
---|---|
ArgumentNullException | si is null . |
Remarks
Any element included in the serialization information added to the object represented by the si parameter is automatically tracked and serialized by the formatter. Code that calls this method is required to have the appropriate SecurityPermission setting for providing serialization services.
See Also
Reference
SPInvalidLookupValuesException Class