Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

RunspaceConfigurationEntryCollection<T> Class

 

Updated: April 27, 2016

Applies To: Windows PowerShell

Represents a collection of runspace configuration entries. This class cannot be inherited.

Namespace:   System.Management.Automation.Runspaces
Assembly:  System.Management.Automation (in System.Management.Automation.dll)

System::Object
  System.Management.Automation.Runspaces::RunspaceConfigurationEntryCollection<T>

generic<typename T>
where T : RunspaceConfigurationEntry
public ref class RunspaceConfigurationEntryCollection sealed : IEnumerable<T>, 
	IEnumerable

Type Parameters

T

The type parameter that represents the items in the collection. This type parameter must be convertible to a RunspaceConfigurationEntry.

NameDescription
System_CAPS_pubmethodRunspaceConfigurationEntryCollection<T>()

Initializes a new instance of the RunspaceConfigurationEntryCollection<T> class that is empty.

System_CAPS_pubmethodRunspaceConfigurationEntryCollection<T>(IEnumerable<T>^)

Initializes a new instance of the RunspaceConfigurationEntryCollection<T> class that contains configuration entries.

NameDescription
System_CAPS_pubpropertyCount

Gets the number of items in the collection.

System_CAPS_pubpropertyItem[Int32]

Gets an item from the collection.

NameDescription
System_CAPS_pubmethodAppend(T)

Adds a single item at the back of the collection.

System_CAPS_pubmethodAppend(IEnumerable<T>^)

Adds multiple items to the back of the collection.

System_CAPS_pubmethodEquals(Object^)

(Inherited from Object.)

System_CAPS_pubmethodGetHashCode()

(Inherited from Object.)

System_CAPS_pubmethodGetType()

(Inherited from Object.)

System_CAPS_pubmethodPrepend(T)

Adds a single item to the front of the collection.

System_CAPS_pubmethodPrepend(IEnumerable<T>^)

Adds multiple items to the front of the collection.

System_CAPS_pubmethodRemoveItem(Int32)

Removes a single item from the collection.

System_CAPS_pubmethodRemoveItem(Int32, Int32)

Removes multiple items from the collection.

System_CAPS_pubmethodReset()

Resets the items in the collection.

System_CAPS_pubmethodToString()

(Inherited from Object.)

System_CAPS_pubmethodUpdate()

Updates the runspaces that are using this configuration with the revised collection.

NameDescription
System_CAPS_pubinterfaceSystem_CAPS_privmethodIEnumerable<T>::GetEnumerator()

Retrieves an IEnumerator<T> object that is used to examine the items in the collection.

System_CAPS_pubinterfaceSystem_CAPS_privmethodIEnumerable::GetEnumerator()

Retrieves a non-generic IEnumerator object that is used to examine the items in the collection.

This collection provides the following features for managing multiple runspaces.

  • Synchronization. Since multiple runspaces may be sharing the same runspace configuration, it is essential that all the configuration entry collections (for cmdlets, providers, assemblies, types, formats) are thread-safe.

  • Updating the Collection. The data for types and formats are order sensitive. It is required for supporting adding and removing from the beginning and the ending of the list.

  • Updating Components. Updated data needs to be communicated to other Windows PowerShell components. For example, if the configuration list for cmdlets and providers is updated, the change has to be communicated to the Windows PowerShell runtime.

Any public static ( Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Return to top
Show: