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.

Exception Condition
ArgumentException

The String provided is not a valid PeerName.

ArgumentNullException

remotePeerName is null.

.NET Framework
Available since 3.5
Return to top
Show: