This documentation is archived and is not being maintained.

Cloud Class

Specifies the values that define a Peer Cloud object.


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

public class Cloud : ISerializable, IEquatable<Cloud>

The Cloud type exposes the following members.

Protected methodCloudInitializes a new instance of the PNRP Cloud type. This populates a serialization information object with the data needed to serialize the Cloud object.

Public propertyStatic memberGlobalGets a Cloud instance that contains globally (internet) scoped peers.
Public propertyNameGets the name of the peer Cloud.
Public propertyScopeGets the network scope of the peer Cloud.
Public propertyScopeIdGets the identifier of a specific IP address for this peer Cloud.

Public methodEquals(Cloud)Performs a case-sensitive comparison between two cloud objects.
Public methodEquals(Object)Determines whether the content of this peer Cloud is equivalent to the content of a System object. (Overrides Object.Equals(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 methodStatic memberGetAvailableCloudsObtains a collection of peer clouds known to the calling peer.
Public methodStatic memberGetCloudByNameReturns the Cloud object with the specified cloud name.
Public methodGetHashCodeOverrides GetHashCode. (Overrides Object.GetHashCode().)
Protected methodGetObjectDataPopulates a System.Runtime.Serialization information object with the data needed to serialize the Cloud.
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 representation of the current Cloud. (Overrides Object.ToString().)

Public fieldStatic memberAllLinkLocalReturns a reference to a Cloud which represents all the link-local clouds in which the client or peer is currently participating.
Public fieldStatic memberAvailableReturns a static reference to a Cloud which represents all the available clouds in which the client is currently participating.

Explicit interface implemetationPrivate methodISerializable.GetObjectDataImplements the ISerializable interface and returns the data needed to serialize the Cloud instance.

A Cloud is a set of nodes that can communicate with each other through the network. Cloud, peer mesh, and peer-to-peer graph are synonymous. A single peer or node may be connected to more than one cloud.

Communication between nodes should never cross from one cloud to another. A Cloud instance is uniquely identified by its name, which is case-sensitive.

Clouds are tied very closely to network interfaces. On a multi-homed machine with two network cards attached to different subnets, three clouds will be returned: one for each of the link local addresses per interface, and a single global scope cloud.

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