PeerName.IsSecured Property


The .NET API Reference documentation has a new home. Visit the .NET API Browser on to see the new experience.

Gets a Boolean value that specifies whether this is a secured peer name.

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

public bool IsSecured { get; }

Property Value

Type: System.Boolean

If true, this peer name is secured with a private key/ public key pair. Its name contains the Secure Hash Algorithm (SHA) hash of the public key of the user certificate of that peer machine. Otherwise, if false, the peer name has no associated identity.

Unless explicitly specified, the default value for all properties is null for reference types and zero (0) for properties of type int.

A peer name is considered secured if it is backed by a self-signed certificate.

Only the owner can register a secured peer name with PNRP.

Notes to Callers:

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

.NET Framework
Available since 3.5
Return to top