IdentityReferenceCollection Class

Definition

Represents a collection of IdentityReference objects and provides a means of converting sets of IdentityReference-derived objects to IdentityReference-derived types.

public ref class IdentityReferenceCollection : System::Collections::Generic::ICollection<System::Security::Principal::IdentityReference ^>, System::Collections::Generic::IEnumerable<System::Security::Principal::IdentityReference ^>
[System.Runtime.InteropServices.ComVisible(false)]
public class IdentityReferenceCollection : System.Collections.Generic.ICollection<System.Security.Principal.IdentityReference>, System.Collections.Generic.IEnumerable<System.Security.Principal.IdentityReference>
type IdentityReferenceCollection = class
    interface IEnumerable
    interface ICollection<IdentityReference>
    interface seq<IdentityReference>
Public Class IdentityReferenceCollection
Implements ICollection(Of IdentityReference), IEnumerable(Of IdentityReference)
Inheritance
IdentityReferenceCollection
Attributes
Implements

Constructors

IdentityReferenceCollection()

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

IdentityReferenceCollection(Int32)

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

Properties

Count

Gets the number of items in the IdentityReferenceCollection collection.

IsReadOnly

Gets a value that indicates whether the IdentityReferenceCollection collection is read-only.

Item[Int32]

Gets or sets the node at the specified index of the IdentityReferenceCollection collection.

Methods

Add(IdentityReference)

Adds an IdentityReference object to the IdentityReferenceCollection collection.

Clear()

Clears all IdentityReference objects from the IdentityReferenceCollection collection.

Contains(IdentityReference)

Indicates whether the IdentityReferenceCollection collection contains the specified IdentityReference object.

CopyTo(IdentityReference[], Int32)

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

Equals(Object)

Determines whether the specified object is equal to the current object.

(Inherited from Object)
GetEnumerator()

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

GetHashCode()

Serves as the default hash function.

(Inherited from Object)
GetType()

Gets the Type of the current instance.

(Inherited from Object)
MemberwiseClone()

Creates a shallow copy of the current Object.

(Inherited from Object)
Remove(IdentityReference)

Removes the specified IdentityReference object from the collection.

ToString()

Returns a string that represents the current object.

(Inherited from Object)
Translate(Type)

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

Translate(Type, Boolean)

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.

Explicit Interface Implementations

ICollection<IdentityReference>.IsReadOnly
IEnumerable.GetEnumerator()

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

Extension Methods

CopyToDataTable<T>(IEnumerable<T>)

Returns a DataTable that contains copies of the DataRow objects, given an input IEnumerable<T> object where the generic parameter T is DataRow.

CopyToDataTable<T>(IEnumerable<T>, DataTable, LoadOption)

Copies DataRow objects to the specified DataTable, given an input IEnumerable<T> object where the generic parameter T is DataRow.

CopyToDataTable<T>(IEnumerable<T>, DataTable, LoadOption, FillErrorEventHandler)

Copies DataRow objects to the specified DataTable, given an input IEnumerable<T> object where the generic parameter T is DataRow.

Cast<TResult>(IEnumerable)

Casts the elements of an IEnumerable to the specified type.

OfType<TResult>(IEnumerable)

Filters the elements of an IEnumerable based on a specified type.

AsParallel(IEnumerable)

Enables parallelization of a query.

AsQueryable(IEnumerable)

Converts an IEnumerable to an IQueryable.

Ancestors<T>(IEnumerable<T>)

Returns a collection of elements that contains the ancestors of every node in the source collection.

Ancestors<T>(IEnumerable<T>, XName)

Returns a filtered collection of elements that contains the ancestors of every node in the source collection. Only elements that have a matching XName are included in the collection.

DescendantNodes<T>(IEnumerable<T>)

Returns a collection of the descendant nodes of every document and element in the source collection.

Descendants<T>(IEnumerable<T>)

Returns a collection of elements that contains the descendant elements of every element and document in the source collection.

Descendants<T>(IEnumerable<T>, XName)

Returns a filtered collection of elements that contains the descendant elements of every element and document in the source collection. Only elements that have a matching XName are included in the collection.

Elements<T>(IEnumerable<T>)

Returns a collection of the child elements of every element and document in the source collection.

Elements<T>(IEnumerable<T>, XName)

Returns a filtered collection of the child elements of every element and document in the source collection. Only elements that have a matching XName are included in the collection.

InDocumentOrder<T>(IEnumerable<T>)

Returns a collection of nodes that contains all nodes in the source collection, sorted in document order.

Nodes<T>(IEnumerable<T>)

Returns a collection of the child nodes of every document and element in the source collection.

Remove<T>(IEnumerable<T>)

Removes every node in the source collection from its parent node.

Applies to