PSRunspaceCmdlet.GetMatchingRunspacesByRunspaceId(Boolean, Boolean) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.