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

IdentityReference

public abstract class IdentityReference
Represents an identity and is the base class for the NTAccount and SecurityIdentifier classes. This class does not provide a public constructor, and therefore cannot be inherited.
using System.Runtime.CompilerServices; namespace System.Security.Principal { [System.Runtime.CompilerServices.NullableContext(1)] [System.Runtime.CompilerServices.Nullable(0)] public abstract class IdentityReference { public abstract string Value { get; } internal IdentityReference() { } [System.Runtime.CompilerServices.NullableContext(2)] public abstract override bool Equals(object o); public abstract override int GetHashCode(); public abstract bool IsValidTargetType(Type targetType); public static bool operator ==(IdentityReference left, IdentityReference right) { throw new PlatformNotSupportedException(System.SR.PlatformNotSupported_Principal); } public static bool operator !=(IdentityReference left, IdentityReference right) { throw new PlatformNotSupportedException(System.SR.PlatformNotSupported_Principal); } public abstract override string ToString(); public abstract IdentityReference Translate(Type targetType); } }