Uri.GetObjectData(SerializationInfo, StreamingContext) Uri.GetObjectData(SerializationInfo, StreamingContext) Uri.GetObjectData(SerializationInfo, StreamingContext) Method

定义

返回序列化当前实例所需的数据。Returns the data needed to serialize the current instance.

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

参数

serializationInfo
SerializationInfo SerializationInfo SerializationInfo

一个 SerializationInfo 对象包含序列化 Uri 所需的信息。A SerializationInfo object containing the information required to serialize the Uri.

streamingContext
StreamingContext StreamingContext StreamingContext

一个 StreamingContext 对象包含与Uri 关联的序列化流的源和目标。A StreamingContext object containing the source and destination of the serialized stream associated with the Uri.

实现

安全性

SecurityPermission
使用序列化方法。to use serialization methods. 关联枚举:SerializationFormatterAssociated enumeration: SerializationFormatter.

适用于