Aracılığıyla paylaş


PSRunspaceCmdlet.GetMatchingRunspacesByName(Boolean, Boolean) Method

Definition

Gets the matching runspaces based on name.

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