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

定义

用序列化 UriFormatException 所需的数据来填充 SerializationInfo 实例。Populates a SerializationInfo instance with the data that is needed to serialize the UriFormatException.

 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,将存放 UriFormatException 的序列化数据。A SerializationInfo that will hold the serialized data for the UriFormatException.

streamingContext
StreamingContext StreamingContext

StreamingContext,它包含与新的 UriFormatException 关联的序列化流的目标。A StreamingContext that contains the destination of the serialized stream that is associated with the new UriFormatException.

实现

适用于

另请参阅