GetObjectData Method

PeerContact.GetObjectData Method (SerializationInfo, StreamingContext)

.NET Framework (current version)
 

Populates a SerializationInfo object with the data needed to serialize the PeerContact.

Namespace:   System.Net.PeerToPeer.Collaboration
Assembly:  System.Net (in System.Net.dll)

[SecurityPermissionAttribute(SecurityAction.LinkDemand, SerializationFormatter = true)]
protected override void GetObjectData(
	SerializationInfo info,
	StreamingContext context
)

Parameters

info
Type: System.Runtime.Serialization.SerializationInfo

Holds the serialized data associated with the PeerContact object.

context
Type: System.Runtime.Serialization.StreamingContext

Contains the destination for the serialized stream associated with the PeerContact object.

This method does not return a value.

A derived type must call the GetObjectData method of the base type.

.NET Framework
Available since 3.5
Return to top
Show:
© 2016 Microsoft