Uri.GetObjectData(SerializationInfo, StreamingContext) 方法

定义

返回序列化当前实例所需的数据。

protected:
 void GetObjectData(System::Runtime::Serialization::SerializationInfo ^ serializationInfo, System::Runtime::Serialization::StreamingContext streamingContext);
protected void GetObjectData (System.Runtime.Serialization.SerializationInfo serializationInfo, System.Runtime.Serialization.StreamingContext streamingContext);
member this.GetObjectData : System.Runtime.Serialization.SerializationInfo * System.Runtime.Serialization.StreamingContext -> unit
Protected Sub GetObjectData (serializationInfo As SerializationInfo, streamingContext As StreamingContext)

参数

serializationInfo
SerializationInfo

序列化 Uri 所需的信息。

streamingContext
StreamingContext

一个对象,包含与 Uri 关联的序列化流的源和目标。

适用于