InitialSessionStateEntryCollection Members

Provides a collection of session state entries, such as commands, types, formats, and variables, for an InitialSessionState object. This class cannot be inherited. This class is introduced in Windows PowerShell 2.0.

The following tables list the members exposed by the InitialSessionStateEntryCollection type.

  Name Description
  InitialSessionStateEntryCollection Overloaded. Creates a new InitialSessionStateEntryCollection object. The variants of this constructor can create an object that is empty and can create an object that contains session state entries. This constructor is introduced by Windows PowerShell 2.0.
Top

  Name Description
public property Count Gets the number of session state entries in the collection. This property is introduced in Windows PowerShell 2.0.
public property Item Gets a session state entry from the collection based on its location. This property is introduced in Windows PowerShell 2.0.
public property Item Gets a session state entry from the collection based on its name. This property is introduced in Windows PowerShell 2.0.
Top

(see also Protected Methods)
 NameDescription
public methodAddOverloaded. Adds a session state entry to the collection. The variants of this method can add a single entry and add multiple entries. This method is introduced in Windows PowerShell 2.0.
public methodClearClears the collection of all session state entries. This method is introduced in Windows PowerShell 2.0.
public methodCloneCreates an exact copy of the current InitialSessionStateEntryCollection object. This method is introduced in Windows PowerShell 2.0.
public methodEquals  (Inherited from Object)
public methodGetHashCode  (Inherited from Object)
public methodGetType  (Inherited from Object)
public methodRemoveRemoves a session state entry from the collection based on the entry name and type. This method is introduced in Windows PowerShell 2.0.
public methodRemoveItemOverloaded. Removes a session state entry from the collection. This method is introduced in Windows PowerShell 2.0.
public methodResetClears the collection. This method is introduced in Windows PowerShell 2.0.
public methodToString  (Inherited from Object)
Top

(see also Extension Methods)
 NameDescription
protected methodFinalize  (Inherited from Object)
protected methodMemberwiseClone  (Inherited from Object)
Top

  Name Description
public extension method As  Use this method to adapt an object from a foreign app domain to a known interface in this app domain.This element is introduced in Windows PowerShell 5.0. (Defined by RequestExtensions.)
public extension method As  This is called to adapt an object from a foreign app domain to a known interface in this appDomainThis element is introduced in Windows PowerShell 5.0. (Defined by RequestExtensions.)
public extension method As  Adapts an object from a foreign app domain to a known interface in this app domain.This element is introduced in Windows PowerShell 5.0. (Defined by RequestExtensions.)
public extension method ByRef  Overloaded. (Defined by CollectionExtensions.)
public extension method ByRefEnumerable  This element is introduced in Windows PowerShell 5.0. (Defined by CollectionExtensions.)
public extension method Concat  Overloaded. (Defined by CollectionExtensions.)
public extension method ConcatSingleItem  This element is introduced in Windows PowerShell 5.0. (Defined by CollectionExtensions.)
public extension method Extend  Use this method to adapt and extend an object so that you can pass it to a foreign app domain.This element is introduced in Windows PowerShell 5.0. (Defined by RequestExtensions.)
public extension method Extend  This is called to adapt and extend an object that we wish to pass to a foreign app domainThis element is introduced in Windows PowerShell 5.0. (Defined by RequestExtensions.)
public extension method Extend  Used to extend an object with an interface from a foreign app domain.This element is introduced in Windows PowerShell 5.0. (Defined by RequestExtensions.)
public extension method Find  (Defined by Utilities.)
public extension method IsNullOrEmpty  Whether the collection object is null or an empty collection.This element is introduced in Windows PowerShell 5.0. (Defined by CollectionExtensions.)
public extension method MyMax  This element is introduced in Windows PowerShell 5.0. (Defined by CollectionExtensions.)
public extension method SafeAggregate  This element is introduced in Windows PowerShell 5.0. (Defined by StringExtensions.)
public extension method ToCacheEnumerable  This element is introduced in Windows PowerShell 5.0. (Defined by CachingEnumerableExtensions.)
public extension method ToDictionaryNicely  This element is introduced in Windows PowerShell 5.0. (Defined by DictionaryExtensions.)
public extension method ToEnumerable  This element is introduced in Windows PowerShell 5.0. (Defined by CollectionExtensions.)
public extension method WhereNotNull  This element is introduced in Windows PowerShell 5.0. (Defined by CollectionExtensions.)
Top

  Name Description
  System.Collections.Generic.IEnumerable<T>.GetEnumerator Returns a generic enumerator that can iterate through the collection. This method is introduced in Windows PowerShell 2.0.
  GetEnumerator Returns an enumerator that can be used to iterate through the collection. This method is introduced in Windows PowerShell 2.0.
Top


Show: