ActiveDirectoryRole.ISerializable.GetObjectData 方法

定义

使用序列化目标对象时所需的数据填充 SerializationInfo

 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);
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

参数

info
SerializationInfo

要填充数据的 SerializationInfo

context
StreamingContext

此序列化的 StreamingContext 目标。

实现

注解

ISerializable.GetObjectData(SerializationInfo, StreamingContext) 的实现允许对此对象进行序列化。

适用于