<PackageReference Include="System.Security.AccessControl" Version="6.0.1" />

PrivilegeNotHeldException

using System.Runtime.CompilerServices; using System.Runtime.Serialization; namespace System.Security.AccessControl { [System.Runtime.CompilerServices.NullableContext(2)] [System.Runtime.CompilerServices.Nullable(0)] public sealed class PrivilegeNotHeldException : UnauthorizedAccessException, ISerializable { public string PrivilegeName { get { throw new PlatformNotSupportedException(System.SR.PlatformNotSupported_AccessControl); } } public PrivilegeNotHeldException() { throw new PlatformNotSupportedException(System.SR.PlatformNotSupported_AccessControl); } public PrivilegeNotHeldException(string privilege) { throw new PlatformNotSupportedException(System.SR.PlatformNotSupported_AccessControl); } public PrivilegeNotHeldException(string privilege, Exception inner) { throw new PlatformNotSupportedException(System.SR.PlatformNotSupported_AccessControl); } [System.Runtime.CompilerServices.NullableContext(1)] public override void GetObjectData(SerializationInfo info, StreamingContext context) { throw new PlatformNotSupportedException(System.SR.PlatformNotSupported_AccessControl); } } }