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

IdentityReferenceCollection

Represents a collection of IdentityReference objects and provides a means of converting sets of IdentityReference-derived objects to IdentityReference-derived types.
using System.Collections; using System.Collections.Generic; using System.Runtime.CompilerServices; namespace System.Security.Principal { [System.Runtime.CompilerServices.NullableContext(1)] [System.Runtime.CompilerServices.Nullable(0)] public class IdentityReferenceCollection : ICollection<IdentityReference>, IEnumerable<IdentityReference>, IEnumerable { public int Count { get { throw new PlatformNotSupportedException(System.SR.PlatformNotSupported_Principal); } } public IdentityReference this[int index] { get { throw new PlatformNotSupportedException(System.SR.PlatformNotSupported_Principal); } set { throw new PlatformNotSupportedException(System.SR.PlatformNotSupported_Principal); } } bool ICollection<IdentityReference>.IsReadOnly { get { throw new PlatformNotSupportedException(System.SR.PlatformNotSupported_Principal); } } public IdentityReferenceCollection() { throw new PlatformNotSupportedException(System.SR.PlatformNotSupported_Principal); } public IdentityReferenceCollection(int capacity) { throw new PlatformNotSupportedException(System.SR.PlatformNotSupported_Principal); } public void Add(IdentityReference identity) { throw new PlatformNotSupportedException(System.SR.PlatformNotSupported_Principal); } public void Clear() { throw new PlatformNotSupportedException(System.SR.PlatformNotSupported_Principal); } public bool Contains(IdentityReference identity) { throw new PlatformNotSupportedException(System.SR.PlatformNotSupported_Principal); } public void CopyTo(IdentityReference[] array, int offset) { throw new PlatformNotSupportedException(System.SR.PlatformNotSupported_Principal); } public IEnumerator<IdentityReference> GetEnumerator() { throw new PlatformNotSupportedException(System.SR.PlatformNotSupported_Principal); } public bool Remove(IdentityReference identity) { throw new PlatformNotSupportedException(System.SR.PlatformNotSupported_Principal); } IEnumerator IEnumerable.GetEnumerator() { throw new PlatformNotSupportedException(System.SR.PlatformNotSupported_Principal); } public IdentityReferenceCollection Translate(Type targetType) { throw new PlatformNotSupportedException(System.SR.PlatformNotSupported_Principal); } public IdentityReferenceCollection Translate(Type targetType, bool forceSuccess) { throw new PlatformNotSupportedException(System.SR.PlatformNotSupported_Principal); } } }