Export (0) Print
Expand All

PeerNameType Enumeration

Defines the type of PeerName to create. A peer name is either secured or unsecured. A secured peer name provides a proof of ownership of the name. An unsecured peer name has no identity associated.

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

public enum PeerNameType

Member nameDescription
SecuredCreate a secured PeerName using the identity of current user.
UnsecuredCreate an unsecured PeerName using the identity of current user.

A node must have access to the private key associated with the public key, used in creating the secured PeerName, in order to prove ownership. The node does not have a relationship to a public key.

The format of a peer name is: Authority.Classifier. The value of Authority depends on whether the name is a secured peer name or an unsecured peer name. The Classifier part of the name can be set to any string that contains 15 or fewer Unicode characters, including the null terminator. Once the Authority, Classifier and security level of a peer have been established, a peer can also be referred to with a relative name or a host name.

Only the owner, or peer host, can register a secure peer name with the PNRP Namespace Provider API. Any node can claim ownership to any unsecured PeerName.

Note   Using a secured PeerName does not ensure the overall security of a networking application. Security of the application is implementation-dependent.

.NET Framework

Supported in: 4.5.2, 4.5.1, 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.

Show:
© 2014 Microsoft