<PackageReference Include="System.Security.Principal.Windows" Version="4.6.0-rc1.19456.4" />

IdentityReferenceCollection

Represents a collection of IdentityReference objects and provides a means of converting sets of IdentityReference-derived objects to IdentityReference-derived types.
public int Count { get; }

Gets the number of items in the IdentityReferenceCollection collection.

public IdentityReference this[int index] { get; set; }

Sets or gets the node at the specified index of the IdentityReferenceCollection collection.

Initializes a new instance of the IdentityReferenceCollection class with zero items in the collection.

public IdentityReferenceCollection(int capacity)

Initializes a new instance of the IdentityReferenceCollection class by using the specified initial size.

public void Add(IdentityReference identity)

Adds an IdentityReference object to the IdentityReferenceCollection collection.

public void Clear()

Clears all IdentityReference objects from the IdentityReferenceCollection collection.

public bool Contains(IdentityReference identity)

Indicates whether the IdentityReferenceCollection collection contains the specified IdentityReference object.

public void CopyTo(IdentityReference[] array, int offset)

Copies the IdentityReferenceCollection collection to an IdentityReferenceCollection array, starting at the specified index.

Gets an enumerator that can be used to iterate through the IdentityReferenceCollection collection.

public bool Remove(IdentityReference identity)

Removes the specified IdentityReference object from the collection.

Converts the objects in the collection to the specified type. Calling this method is the same as calling Translate with the second parameter set to false, which means that exceptions will not be thrown for items that fail conversion.

public IdentityReferenceCollection Translate(Type targetType, bool forceSuccess)

Converts the objects in the collection to the specified type and uses the specified fault tolerance to handle or ignore errors associated with a type not having a conversion mapping.