Export (0) Print
Expand All

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 Sub New ( _
	id As Guid, _
	description As String, _
	data As Byte(), _
	path As String, _
	commandLineArgs As String, _
	peerScope As 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 Nothing.

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.6, 4.5, 4, 3.5

.NET Framework Client Profile

Supported in: 4, 3.5 SP1

Windows 8.1, Windows Server 2012 R2, Windows 8, Windows Server 2012, Windows 7, Windows Vista SP2, Windows Server 2008 (Server Core Role not supported), Windows Server 2008 R2 (Server Core Role supported with SP1 or later; Itanium not supported)

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

© 2014 Microsoft