This documentation is archived and is not being maintained.

PeerName Constructor (String)

Initializes a new object of type PeerName with the supplied fully qualified peer name String value.

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

public PeerName(
	string remotePeerName
)

Parameters

remotePeerName
Type: System.String

Contains the peer name to encode as a PeerName instance.

ExceptionCondition
ArgumentException

The String provided is not a valid PeerName.

ArgumentNullException

The remotePeerName parameter cannot be null.

Windows 7, Windows Vista, Windows XP SP2, Windows Server 2008 R2, Windows Server 2008

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

.NET Framework

Supported in: 3.5
Show: