Compartir a través de


PSRunspaceCmdlet.GetMatchingRunspaces Method

Definition

Overloads

GetMatchingRunspaces(Boolean, Boolean)

Gets the matching runspaces based on the parameterset.

GetMatchingRunspaces(Boolean, Boolean, SessionFilterState, String)

Gets the matching runspaces based on the parameterset.

GetMatchingRunspaces(Boolean, Boolean)

Gets the matching runspaces based on the parameterset.

protected:
 System::Collections::Generic::Dictionary<Guid, System::Management::Automation::Runspaces::PSSession ^> ^ GetMatchingRunspaces(bool writeobject, bool writeErrorOnNoMatch);
protected System.Collections.Generic.Dictionary<Guid,System.Management.Automation.Runspaces.PSSession> GetMatchingRunspaces (bool writeobject, bool writeErrorOnNoMatch);
member this.GetMatchingRunspaces : bool * bool -> System.Collections.Generic.Dictionary<Guid, System.Management.Automation.Runspaces.PSSession>
Protected Function GetMatchingRunspaces (writeobject As Boolean, writeErrorOnNoMatch As Boolean) As Dictionary(Of Guid, PSSession)

Parameters

writeobject
Boolean

if true write the object down the pipeline

writeErrorOnNoMatch
Boolean

write an error record when no matches are found

Returns

List of matching runspaces.

Applies to

GetMatchingRunspaces(Boolean, Boolean, SessionFilterState, String)

Gets the matching runspaces based on the parameterset.

protected:
 System::Collections::Generic::Dictionary<Guid, System::Management::Automation::Runspaces::PSSession ^> ^ GetMatchingRunspaces(bool writeobject, bool writeErrorOnNoMatch, Microsoft::PowerShell::Commands::SessionFilterState filterState, System::String ^ configurationName);
protected System.Collections.Generic.Dictionary<Guid,System.Management.Automation.Runspaces.PSSession> GetMatchingRunspaces (bool writeobject, bool writeErrorOnNoMatch, Microsoft.PowerShell.Commands.SessionFilterState filterState, string configurationName);
member this.GetMatchingRunspaces : bool * bool * Microsoft.PowerShell.Commands.SessionFilterState * string -> System.Collections.Generic.Dictionary<Guid, System.Management.Automation.Runspaces.PSSession>
Protected Function GetMatchingRunspaces (writeobject As Boolean, writeErrorOnNoMatch As Boolean, filterState As SessionFilterState, configurationName As String) As Dictionary(Of Guid, PSSession)

Parameters

writeobject
Boolean

if true write the object down the pipeline

writeErrorOnNoMatch
Boolean

write an error record when no matches are found

filterState
SessionFilterState

Runspace state filter value.

configurationName
String

Runspace configuration name filter value.

Returns

List of matching runspaces.

Applies to