Share via


PSRunspaceCmdlet.GetMatchingRunspacesByRunspaceId(Boolean, Boolean) Method

Definition

Gets the matching runspaces based on the runspaces instance id.

protected:
 System::Collections::Generic::Dictionary<Guid, System::Management::Automation::Runspaces::PSSession ^> ^ GetMatchingRunspacesByRunspaceId(bool writeobject, bool writeErrorOnNoMatch);
protected System.Collections.Generic.Dictionary<Guid,System.Management.Automation.Runspaces.PSSession> GetMatchingRunspacesByRunspaceId (bool writeobject, bool writeErrorOnNoMatch);
member this.GetMatchingRunspacesByRunspaceId : bool * bool -> System.Collections.Generic.Dictionary<Guid, System.Management.Automation.Runspaces.PSSession>
Protected Function GetMatchingRunspacesByRunspaceId (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