Uri.ISerializable.GetObjectData Method (SerializationInfo, StreamingContext)

 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

Returns the data needed to serialize the current instance.

Namespace:   System
Assembly:  System (in System.dll)

[SecurityPermissionAttribute(SecurityAction.LinkDemand, SerializationFormatter = true)]
void ISerializable.GetObjectData(
	SerializationInfo serializationInfo,
	StreamingContext streamingContext
)

Parameters

serializationInfo
Type: System.Runtime.Serialization.SerializationInfo

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

streamingContext
Type: System.Runtime.Serialization.StreamingContext

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

SecurityPermission

to use serialization methods. Associated enumeration: SerializationFormatter.

.NET Framework
Available since 1.1
Return to top
Show: