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

定义

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

 virtual void System.Runtime.Serialization.ISerializable.GetObjectData(System::Runtime::Serialization::SerializationInfo ^ serializationInfo, System::Runtime::Serialization::StreamingContext streamingContext) = System::Runtime::Serialization::ISerializable::GetObjectData;
void ISerializable.GetObjectData (System.Runtime.Serialization.SerializationInfo serializationInfo, System.Runtime.Serialization.StreamingContext streamingContext);

参数

serializationInfo
SerializationInfo SerializationInfo

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

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.

适用于