This documentation is archived and is not being maintained.

PnrpPermission Class

Specifies the values that are used in System.Net.PeerToPeer object permissions.

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

public sealed class PnrpPermission : CodeAccessPermission, 

The default permissions allow all local and Intranet zone applications to access PNRP services. If the default permissions are not changed, all link-local and site-local applications have access to Peer-to-Peer services, but global (internet) applications have no access.

Instances of this type have two permission states: they either have no access to the resource(s) protected by the permission, or they have unrestricted full access to those resources.


Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

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