Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
PeerNameRecord Class

PeerNameRecord Class

Defines the set of values that form a peer name record object. This record includes items such as the peer name and the collection of endpoints with which it communicates. Peer name records are used to define the individual peer nodes within a Cloud.


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

public class PeerNameRecord : ISerializable

The PeerNameRecord type exposes the following members.

Public methodPeerNameRecord()Initializes a new default instance of the PeerNameRecord class.
Protected methodPeerNameRecord(SerializationInfo, StreamingContext)Initializes a new default instance of the PeerNameRecord class.

Public propertyCommentGets or sets additional information about the PeerNameRecord object.
Public propertyDataGets or sets application-defined binary data for the PeerNameRecord object.
Public propertyEndPointCollectionGets an PeerEndPointCollection object that contains all the endpoints available to the peer associated with this PeerNameRecord object.
Public propertyPeerNameGets or sets the PeerName within this PeerNameRecord object. A peer name is a string used to identify a peer resource.

Public methodEquals(Object)Determines whether the specified object is equal to the current object. (Inherited from Object.)
Protected methodFinalizeAllows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.)
Public methodGetHashCodeServes as the default hash function. (Inherited from Object.)
Protected methodGetObjectDataPopulates a serialization information object with the data needed to serialize the PeerNameRecord.
Public methodGetTypeGets the Type of the current instance. (Inherited from Object.)
Protected methodMemberwiseCloneCreates a shallow copy of the current Object. (Inherited from Object.)
Public methodToStringReturns a string that represents the current object. (Inherited from Object.)

Explicit interface implemetationPrivate methodISerializable.GetObjectDataImplements the ISerializable interface and returns the data needed to serialize the PeerNameRecord instance.

PeerNameRecord objects are used to define individual nodes or peers within a Cloud. A peer name record object encapsulates all information published about a peer into a PNRP Cloud, including its name. The PeerNameRecord class is designed for use with the PeerNameResolver class.

.NET Framework

Supported in: 4.6, 4.5, 4, 3.5

.NET Framework Client Profile

Supported in: 4, 3.5 SP1

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
© 2015 Microsoft