PeerNameRegistration.Update Method ()


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

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

public void Update()

Exception Condition

The PeerName property is set to null.

  • The PeerName property has not yet been registered. The Update method cannot be called until the peer name specified in the PeerName property is registered in one or more clouds.

  • The peer name specified in the PeerName property has changed since the corresponding PeerNameRecord was registered.


An object that has been disposed cannot be registered.


A PeerNameRecord property is set to null.

All information registered in cloud(s) for this PeerName prior to the call is completely discarded. The new data is not combined with the existing registration. To update a PeerNameRegistration, first update the properties on this instance and then call this method.

After a PeerNameRecord is registered, the PeerName property cannot be updated. All other fields in the record may be updated.

.NET Framework
Available since 3.5
Return to top