IntPtr.ISerializable.GetObjectData(SerializationInfo, StreamingContext) Method

Definition

使用序列化当前的 SerializationInfo 对象所需的所有数据填充 IntPtr 对象。Populates a SerializationInfo object with the data needed to serialize the current IntPtr object.

 virtual void System.Runtime.Serialization.ISerializable.GetObjectData(System::Runtime::Serialization::SerializationInfo ^ info, System::Runtime::Serialization::StreamingContext context) = System::Runtime::Serialization::ISerializable::GetObjectData;
void ISerializable.GetObjectData (System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context);
[System.Security.SecurityCritical]
void ISerializable.GetObjectData (System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context);
abstract member System.Runtime.Serialization.ISerializable.GetObjectData : System.Runtime.Serialization.SerializationInfo * System.Runtime.Serialization.StreamingContext -> unit
override this.System.Runtime.Serialization.ISerializable.GetObjectData : System.Runtime.Serialization.SerializationInfo * System.Runtime.Serialization.StreamingContext -> unit
Sub GetObjectData (info As SerializationInfo, context As StreamingContext) Implements ISerializable.GetObjectData

Parameters

info
SerializationInfo

要用数据填充的 SerializationInfo 对象。The SerializationInfo object to populate with data.

context
StreamingContext

此序列化的目标。The destination for this serialization. (未使用此参数;指定 null。)(This parameter is not used; specify null.)

Implements

Attributes

Exceptions

infonullinfo is null.

Remarks

此方法用当前 IntPtr 对象的值填充 info 参数。This method populates the info parameter with the value of the current IntPtr object.

Applies to