C# Uri GetObjectData
Description
Uri GetObjectData
returns the data needed to serialize
the current instance.
Syntax
Uri.GetObjectData
has the following syntax.
[SecurityPermissionAttribute(SecurityAction.LinkDemand, SerializationFormatter = true)]
protected void GetObjectData(
SerializationInfo serializationInfo,//from w ww .j a v a2 s . com
StreamingContext streamingContext
)
Parameters
Uri.GetObjectData
has the following parameters.
serializationInfo
- A SerializationInfo object containing the information required to serialize the Uri.streamingContext
- A StreamingContext object containing the source and destination of the serialized stream associated with the Uri.
Returns
Uri.GetObjectData
method returns