SPFileLockException.GetObjectData method
Populates the provided SerializationInfo object with information about the SPFileLockException.
Namespace: Microsoft.SharePoint
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Syntax
'Declaration
<SecurityPermissionAttribute(SecurityAction.Demand, SerializationFormatter := True)> _
Public Overrides Sub GetObjectData ( _
serializationInfo As SerializationInfo, _
context As StreamingContext _
)
'Usage
Dim instance As SPFileLockException
Dim serializationInfo As SerializationInfo
Dim context As StreamingContext
instance.GetObjectData(serializationInfo, _
context)
[SecurityPermissionAttribute(SecurityAction.Demand, SerializationFormatter = true)]
public override void GetObjectData(
SerializationInfo serializationInfo,
StreamingContext context
)
Parameters
serializationInfo
Type: System.Runtime.Serialization.SerializationInfoThe serialization information to which information about the SPFileLockException is added.
context
Type: System.Runtime.Serialization.StreamingContextContextual information about the serialization source or destination.
Implements
ISerializable.GetObjectData(SerializationInfo, StreamingContext)
_Exception.GetObjectData(SerializationInfo, StreamingContext)
Remarks
This method adds information about the SPFileLockException for serialization. During deserialization, the object is reconstituted from the SerializationInfo.