This documentation is archived and is not being maintained.

PeerApplication Constructor (Guid, String, Byte[], String, String, PeerScope)

Initializes a new PeerApplication instance with the supplied application ID, description, scope, and data elements.

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

public PeerApplication(
	Guid id,
	string description,
	byte[] data,
	string path,
	string commandLineArgs,
	PeerScope peerScope


Type: System.Guid
A user-specified Guid used to identify the PeerApplication.
Type: System.String
A String description of the peer application.
Type: System.Byte[]
A binary data object to associate with the peer application, such as a small image.
Type: System.String
The local file system path to the peer application.
Type: System.String
Command-line arguments for starting the peer application.
Type: System.Net.PeerToPeer.Collaboration.PeerScope
The scope in which the application will be registered for peer collaboration.

  • Length of the binary data object cannot be less than one or greater than 16k.

  • id is set to null.

The globally unique Id and PeerApplicationRegistrationType properties of this instance must be set before the application can successfully be registered.

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