<PackageReference Include="System.Security.Principal.Windows" Version="5.0.0-preview.6.20305.6" />

IdentityNotMappedException

Represents an exception for a principal whose identity could not be mapped to a known identity.
using System.Runtime.CompilerServices; using System.Runtime.Serialization; namespace System.Security.Principal { [System.Runtime.CompilerServices.NullableContext(1)] [System.Runtime.CompilerServices.Nullable(0)] public sealed class IdentityNotMappedException : SystemException { public IdentityReferenceCollection UnmappedIdentities { get { throw new PlatformNotSupportedException(System.SR.PlatformNotSupported_Principal); } } public IdentityNotMappedException() { throw new PlatformNotSupportedException(System.SR.PlatformNotSupported_Principal); } [System.Runtime.CompilerServices.NullableContext(2)] public IdentityNotMappedException(string message) { throw new PlatformNotSupportedException(System.SR.PlatformNotSupported_Principal); } [System.Runtime.CompilerServices.NullableContext(2)] public IdentityNotMappedException(string message, Exception inner) { throw new PlatformNotSupportedException(System.SR.PlatformNotSupported_Principal); } public override void GetObjectData(SerializationInfo serializationInfo, StreamingContext streamingContext) { throw new PlatformNotSupportedException(System.SR.PlatformNotSupported_Principal); } } }