InitialSessionStateEntryCollection<T> InitialSessionStateEntryCollection<T> InitialSessionStateEntryCollection<T> Class


public sealed class InitialSessionStateEntryCollection<T> : System.Collections.Generic.IEnumerable<T> where T : InitialSessionStateEntry
type InitialSessionStateEntryCollection<'T (requires 'T :> InitialSessionStateEntry)> = class
    interface seq<'T (requires 'T :> InitialSessionStateEntry)>
    interface IEnumerable
Public NotInheritable Class InitialSessionStateEntryCollection(Of T)
Implements IEnumerable(Of T)
Type Parameters


InitialSessionStateEntryCollection<T>() InitialSessionStateEntryCollection<T>() InitialSessionStateEntryCollection<T>()

Create an empty collection...

InitialSessionStateEntryCollection<T>(IEnumerable<T>) InitialSessionStateEntryCollection<T>(IEnumerable<T>) InitialSessionStateEntryCollection<T>(IEnumerable<T>)

Create an new collection, copying in the passed items...


Count Count Count

Returns a count of the number of items in the collection...

Item[Int32] Item[Int32] Item[Int32]
Item[String] Item[String] Item[String]

To find the entries based on name. Why collection - Different SnapIn/modules and same entity names. If used on command collection entry, then for the same name, one can have multiple output


Add(IEnumerable<T>) Add(IEnumerable<T>) Add(IEnumerable<T>)

Add items to this collection.

Add(T) Add(T) Add(T)

Add an item to this collection.

Clear() Clear() Clear()

Clears the collection...

Clone() Clone() Clone()

Clone this collection

Remove(String, Object) Remove(String, Object) Remove(String, Object)

This overload exists so that we can remove items based on the item name, rather than its position in the collection. The type argument can be null but we'll throw an error if we can't distinguish between multiple entries of the same name but different types and the type hasn't been specified. BUGBUG - brucepay - the throw thing is not implemented yet...

RemoveItem(Int32) RemoveItem(Int32) RemoveItem(Int32)
RemoveItem(Int32, Int32) RemoveItem(Int32, Int32) RemoveItem(Int32, Int32)

Remove a number of items starting at the specified index.

Reset() Reset() Reset()

Reset the collection

Explicit Interface Implementations

IEnumerable<T>.GetEnumerator() IEnumerable<T>.GetEnumerator() IEnumerable<T>.GetEnumerator()

Get enumerator for this collection.

IEnumerable.GetEnumerator() IEnumerable.GetEnumerator() IEnumerable.GetEnumerator()

Get enumerator for this collection.

Applies to