Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
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, 

The PeerNameRegistration type exposes the following members.

Public methodPeerNameRegistration()Initializes a new default instance of the PeerNameRegistration class.
Public methodPeerNameRegistration(PeerName, Int32)Initializes a new instance of the PeerNameRegistration class with the specified name and port number.
Protected methodPeerNameRegistration(SerializationInfo, StreamingContext)Initializes a new serializable PeerNameRegistration object.
Public methodPeerNameRegistration(PeerName, Int32, Cloud)Initializes a new instance of the PeerNameRegistration class with the specified peer name, port number, and Cloud.

Public propertyCloudGets or sets information in a Cloud into which this PeerName object will be registered.
Public propertyCommentGets or sets additional information about the PeerName object that will be registered with the Cloud.
Public propertyDataGets or sets application-defined binary data for the PeerNameRegistration object.
Public propertyEndPointCollectionGets the collection of network endpoints for which the associated peer name is registered.
Public propertyPeerNameGets or sets the peer name to register with a peer cloud.
Public propertyPortGets or sets the TCP/IP port number used by the peer being registered into the PeerNameRegistration object.
Public propertyUseAutoEndPointSelectionGets or sets a value that specifies whether to use automatic endpoint selection when traversing a peer mesh or Cloud.

Public methodDispose()Releases all resources used by the PeerNameRegistration object.
Protected methodDispose(Boolean)Releases the unmanaged resources and optionally releases the managed resources used by the PeerNameRegistration object.
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 PeerNameRegistration instance.
Public methodGetTypeGets the Type of the current instance. (Inherited from Object.)
Public methodIsRegisteredGets or sets whether the peer name specified in the PeerName property is registered with a specific Cloud on a host.
Protected methodMemberwiseCloneCreates a shallow copy of the current Object. (Inherited from Object.)
Public methodStartRegisters the PeerName into the Cloud. If no EndPointCollection is specified, automatic address selection is used with the port value specified by the Port property.
Public methodStopUnregisters the peer name specified in the PeerName property from all the clouds in which it was registered.
Public methodToStringReturns a string that represents the current object. (Inherited from Object.)
Public methodUpdateUpdates the PeerNameRegistration for a node registered with a specific Cloud. Update is performed using the information specified in the properties.

Explicit interface implemetationPrivate methodISerializable.GetObjectDataImplements 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

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