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

NTAccount

public sealed class NTAccount : IdentityReference
Represents a user or group account.
using System.Runtime.CompilerServices; namespace System.Security.Principal { [System.Runtime.CompilerServices.NullableContext(1)] [System.Runtime.CompilerServices.Nullable(0)] public sealed class NTAccount : IdentityReference { public override string Value { get { throw new PlatformNotSupportedException(System.SR.PlatformNotSupported_Principal); } } public NTAccount(string name) { throw new PlatformNotSupportedException(System.SR.PlatformNotSupported_Principal); } public NTAccount(string domainName, string accountName) { throw new PlatformNotSupportedException(System.SR.PlatformNotSupported_Principal); } [System.Runtime.CompilerServices.NullableContext(2)] public override bool Equals(object o) { throw new PlatformNotSupportedException(System.SR.PlatformNotSupported_Principal); } public override int GetHashCode() { throw new PlatformNotSupportedException(System.SR.PlatformNotSupported_Principal); } public override bool IsValidTargetType(Type targetType) { throw new PlatformNotSupportedException(System.SR.PlatformNotSupported_Principal); } public static bool operator ==(NTAccount left, NTAccount right) { throw new PlatformNotSupportedException(System.SR.PlatformNotSupported_Principal); } public static bool operator !=(NTAccount left, NTAccount right) { throw new PlatformNotSupportedException(System.SR.PlatformNotSupported_Principal); } public override string ToString() { throw new PlatformNotSupportedException(System.SR.PlatformNotSupported_Principal); } public override IdentityReference Translate(Type targetType) { throw new PlatformNotSupportedException(System.SR.PlatformNotSupported_Principal); } } }