UriFormatException.ISerializable.GetObjectData(SerializationInfo, StreamingContext) Method

Definition

用序列化 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);
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 (serializationInfo As SerializationInfo, streamingContext As StreamingContext) Implements ISerializable.GetObjectData

Parameters

serializationInfo
SerializationInfo

一个 SerializationInfo,将存放 UriFormatException 的序列化数据。A SerializationInfo that will hold the serialized data for the UriFormatException.

streamingContext
StreamingContext

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

Implements

Applies to

See also