SPListDataValidationException.GetObjectData 方法

保存序列化的异常的信息。

命名空间:  Microsoft.SharePoint
程序集:  Microsoft.SharePoint(位于 Microsoft.SharePoint.dll 中)

语法

声明
<SecurityPermissionAttribute(SecurityAction.Demand, SerializationFormatter := True)> _
Public Overrides Sub GetObjectData ( _
    serializationInfo As SerializationInfo, _
    context As StreamingContext _
)
用法
Dim instance As SPListDataValidationException
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
)

参数

实现

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

异常

异常 条件
ArgumentNullException

serializationInfo是 null 。

备注

此方法添加了有关序列化异常的信息。反序列化,期间从serializationInfo重建异常对象。

另请参阅

引用

SPListDataValidationException 类

SPListDataValidationException 成员

Microsoft.SharePoint 命名空间