-
Notifications
You must be signed in to change notification settings - Fork 4.7k
/
NetworkInformationPermission.cs
26 lines (24 loc) · 1.22 KB
/
NetworkInformationPermission.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
using System.Security;
using System.Security.Permissions;
namespace System.Net.NetworkInformation
{
#if NETCOREAPP
[Obsolete(Obsoletions.CodeAccessSecurityMessage, DiagnosticId = Obsoletions.CodeAccessSecurityDiagId, UrlFormat = Obsoletions.SharedUrlFormat)]
#endif
public sealed class NetworkInformationPermission : CodeAccessPermission, IUnrestrictedPermission
{
public NetworkInformationPermission(PermissionState state) { }
public NetworkInformationPermission(NetworkInformationAccess access) { }
public NetworkInformationAccess Access { get; }
public void AddPermission(NetworkInformationAccess access) { }
public bool IsUnrestricted() => true;
public override IPermission Copy() => this;
public override IPermission Union(IPermission target) => null;
public override IPermission Intersect(IPermission target) => null;
public override bool IsSubsetOf(IPermission target) => false;
public override void FromXml(SecurityElement securityElement) { }
public override SecurityElement ToXml() => null;
}
}