Export (0) Print
Expand All

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.

System.Object
  System.Net.PeerToPeer.PeerNameRecord

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

[SerializableAttribute]
public class PeerNameRecord : ISerializable

The PeerNameRecord type exposes the following members.

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

  NameDescription
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.
Top

  NameDescription
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 a hash function for a particular type. (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.)
Top

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

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, 3.5

.NET Framework Client Profile

Supported in: 4, 3.5 SP1

Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later)

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

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

Community Additions

ADD
Show:
© 2014 Microsoft