Command.MergeMyResults(PipelineResultTypes, PipelineResultTypes) 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.
Merges this commands results.
public:
void MergeMyResults(System::Management::Automation::Runspaces::PipelineResultTypes myResult, System::Management::Automation::Runspaces::PipelineResultTypes toResult);
public void MergeMyResults (System.Management.Automation.Runspaces.PipelineResultTypes myResult, System.Management.Automation.Runspaces.PipelineResultTypes toResult);
member this.MergeMyResults : System.Management.Automation.Runspaces.PipelineResultTypes * System.Management.Automation.Runspaces.PipelineResultTypes -> unit
Public Sub MergeMyResults (myResult As PipelineResultTypes, toResult As PipelineResultTypes)
Parameters
- myResult
- PipelineResultTypes
Pipeline stream to be redirected.
- toResult
- PipelineResultTypes
Pipeline stream in to which myResult is merged
Exceptions
myResult parameter is not PipelineResultTypes.Error or toResult parameter is not PipelineResultTypes.Output
Remarks
Currently only operation supported is to merge error of command to output of command.