OwnerDrawPropertyBag.ISerializable.GetObjectData(SerializationInfo, StreamingContext) OwnerDrawPropertyBag.ISerializable.GetObjectData(SerializationInfo, StreamingContext) OwnerDrawPropertyBag.ISerializable.GetObjectData(SerializationInfo, StreamingContext) Method

定义

使用将目标对象序列化所需的数据填充指定的 SerializationInfoPopulates the specified SerializationInfo with the data needed to serialize the target object.

此 API 支持产品基础结构,不能在代码中直接使用。

 virtual void System.Runtime.Serialization.ISerializable.GetObjectData(System::Runtime::Serialization::SerializationInfo ^ si, System::Runtime::Serialization::StreamingContext context) = System::Runtime::Serialization::ISerializable::GetObjectData;
void ISerializable.GetObjectData (System.Runtime.Serialization.SerializationInfo si, System.Runtime.Serialization.StreamingContext context);
Sub GetObjectData (si As SerializationInfo, context As StreamingContext) Implements ISerializable.GetObjectData

参数

si
SerializationInfo SerializationInfo SerializationInfo

要填充数据的 SerializationInfoThe SerializationInfo to populate with data.

context
StreamingContext StreamingContext StreamingContext

此序列化的目标。The destination for this serialization.

实现

安全性

SecurityPermission
用于提供序列化服务。for providing serialization services. 关联的枚举:SerializationFormatterAssociated enumeration: SerializationFormatter.

适用于