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

Definition

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

Parameters

serializationInfo
SerializationInfo SerializationInfo SerializationInfo

A SerializationInfo object containing the information required to serialize the Uri.

streamingContext
StreamingContext StreamingContext StreamingContext

A StreamingContext object containing the source and destination of the serialized stream associated with the Uri.

Implements

Security

SecurityPermission
to use serialization methods. Associated enumeration: SerializationFormatter.

Applies to