Windows apps
Collapse the table of content
Expand the table of content
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

Uri.GetObjectData Method (SerializationInfo, StreamingContext)

 

Returns the data needed to serialize the current instance.

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

[SecurityPermissionAttribute(SecurityAction.LinkDemand, SerializationFormatter = true)]
protected void 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 2.0
Return to top
Show:
© 2017 Microsoft