SPAutoSerializingObject.GetObjectData 方法
获取对象的序列化的状态。
命名空间: Microsoft.SharePoint.Administration
程序集: Microsoft.SharePoint(位于 Microsoft.SharePoint.dll 中)
语法
声明
<SecurityPermissionAttribute(SecurityAction.Demand, SerializationFormatter := True)> _
Public Overridable Sub GetObjectData ( _
info As SerializationInfo, _
context As StreamingContext _
)
用法
Dim instance As SPAutoSerializingObject
Dim info As SerializationInfo
Dim context As StreamingContext
instance.GetObjectData(info, context)
[SecurityPermissionAttribute(SecurityAction.Demand, SerializationFormatter = true)]
public virtual void GetObjectData(
SerializationInfo info,
StreamingContext context
)
参数
info
类型:System.Runtime.Serialization.SerializationInfo序列化对象所需的信息。
context
类型:System.Runtime.Serialization.StreamingContext源或序列化的目标。