PeerNameRegistration Class

PeerNameRegistration Class


Registers a PeerName in a Cloud or set of clouds.

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


public class PeerNameRegistration : IDisposable, ISerializable


Initializes a new default instance of the PeerNameRegistration class.

System_CAPS_pubmethodPeerNameRegistration(PeerName, Int32)

Initializes a new instance of the PeerNameRegistration class with the specified name and port number.

System_CAPS_pubmethodPeerNameRegistration(PeerName, Int32, Cloud)

Initializes a new instance of the PeerNameRegistration class with the specified peer name, port number, and Cloud.

System_CAPS_protmethodPeerNameRegistration(SerializationInfo, StreamingContext)

Initializes a new serializable PeerNameRegistration object.


Gets or sets information in a Cloud into which this PeerName object will be registered.


Gets or sets additional information about the PeerName object that will be registered with the Cloud.


Gets or sets application-defined binary data for the PeerNameRegistration object.


Gets the collection of network endpoints for which the associated peer name is registered.


Gets or sets the peer name to register with a peer cloud.


Gets or sets the TCP/IP port number used by the peer being registered into the PeerNameRegistration object.


Gets or sets a value that specifies whether to use automatic endpoint selection when traversing a peer mesh or Cloud.


Releases all resources used by the PeerNameRegistration object.


Releases the unmanaged resources and optionally releases the managed resources used by the PeerNameRegistration object.


Determines whether the specified object is equal to the current object.(Inherited from Object.)


Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.(Inherited from Object.)


Serves as the default hash function. (Inherited from Object.)

System_CAPS_protmethodGetObjectData(SerializationInfo, StreamingContext)

Populates a serialization information object with the data needed to serialize the PeerNameRegistration instance.


Gets the Type of the current instance.(Inherited from Object.)


Gets or sets whether the peer name specified in the PeerName property is registered with a specific Cloud on a host.


Creates a shallow copy of the current Object.(Inherited from Object.)


Registers the PeerName into the Cloud. If no EndPointCollection is specified, automatic address selection is used with the port value specified by the Port property.


Unregisters the peer name specified in the PeerName property from all the clouds in which it was registered.


Returns a string that represents the current object.(Inherited from Object.)


Updates the PeerNameRegistration for a node registered with a specific Cloud. Update is performed using the information specified in the properties.

System_CAPS_pubinterfaceSystem_CAPS_privmethodISerializable.GetObjectData(SerializationInfo, StreamingContext)

Implements the ISerializable interface and returns the data needed to serialize the PeerNameRegistration instance.

Registration creates (or updates) all the information that is associated with a PeerName in a peer cloud or clouds.

It is possible to have multiple PeerNameRegistration objects for the same peer name. In such a case, if the peer name is secured, each instance represents PeerNameRegistration in a different cloud. However, if the peer name is not secured, it can be registered in the same cloud multiple times, providing that each registration is from a different process.

.NET Framework
Available since 3.5

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

Return to top
© 2016 Microsoft