<PackageReference Include="System.Security.Permissions" Version="10.0.0-preview.4.25258.110" />

PeerCollaborationPermissionAttribute

Allows security actions for PeerCollaborationPermission to be applied to code using declarative security. This class cannot be inherited.
using System.Security; using System.Security.Permissions; namespace System.Net.PeerToPeer.Collaboration { [AttributeUsage(AttributeTargets.Assembly | AttributeTargets.Class | AttributeTargets.Struct | AttributeTargets.Constructor | AttributeTargets.Method, AllowMultiple = true, Inherited = false)] public sealed class PeerCollaborationPermissionAttribute : CodeAccessSecurityAttribute { public PeerCollaborationPermissionAttribute(SecurityAction action) : base(action) { } public override IPermission CreatePermission() { return null; } } }