PeerNameRegistration Class

 

Registers a PeerName in a Cloud or set of clouds.

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

System.Object
  System.Net.PeerToPeer.PeerNameRegistration

[SerializableAttribute]
public class PeerNameRegistration : IDisposable, ISerializable

NameDescription
System_CAPS_pubmethodPeerNameRegistration()

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.

NameDescription
System_CAPS_pubpropertyCloud

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

System_CAPS_pubpropertyComment

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

System_CAPS_pubpropertyData

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

System_CAPS_pubpropertyEndPointCollection

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

System_CAPS_pubpropertyPeerName

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

System_CAPS_pubpropertyPort

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

System_CAPS_pubpropertyUseAutoEndPointSelection

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

NameDescription
System_CAPS_pubmethodDispose()

Releases all resources used by the PeerNameRegistration object.

System_CAPS_protmethodDispose(Boolean)

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

System_CAPS_pubmethodEquals(Object)

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

System_CAPS_protmethodFinalize()

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

System_CAPS_pubmethodGetHashCode()

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.

System_CAPS_pubmethodGetType()

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

System_CAPS_pubmethodIsRegistered()

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

System_CAPS_protmethodMemberwiseClone()

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

System_CAPS_pubmethodStart()

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.

System_CAPS_pubmethodStop()

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

System_CAPS_pubmethodToString()

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

System_CAPS_pubmethodUpdate()

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

NameDescription
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
Show: