PeerName Constructor (String^, PeerNameType)
.NET Framework (current version)
Initializes a new instance of the PeerName class.
Assembly: System.Net (in System.Net.dll)
public:
[SecurityCriticalAttribute]
PeerName(
String^ classifier,
PeerNameType peerNameType
)
Parameters
- classifier
- Type: System::String^
- peerNameType
-
Type:
System.Net.PeerToPeer::PeerNameType
PeerNameType enumeration value that specifies the type of peer name to create.
| Exception | Condition |
|---|---|
| ArgumentException | The Classifier includes one or more illegal characters. |
| ArgumentNullException | One or more parameters are null. |
| PeerToPeerException |
This constructor returns an object of type PeerName that contains the fully qualified name of the peer. It also specifies whether the peer name is secured or unsecured.
This instance uses the default peer identity for the current user and the specified Classifier, in addition to the type of peer name to create with the specified classifier and type.
.NET Framework
Available since 3.5
Available since 3.5
Show: