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





















Home »
  C# Tutorial »
    System »




Array
BitConverter
Boolean
Byte
Char
Console
ConsoleKeyInfo
Convert
DateTime
DateTimeOffset
Decimal
Double
Enum
Environment
Exception
Guid
Int16
Int32
Int64
Math
OperatingSystem
Random
SByte
Single
String
StringComparer
TimeSpan
TimeZone
TimeZoneInfo
Tuple
Tuple
Tuple
Type
UInt16
UInt32
UInt64
Uri
Version