(self, to="none")
return self
Controls where the Error stream of the last command in the pipeline
        will be sent to.

        :param to: Can be one of the following
            none: Send all Error streams to the Error stream
            output: Send all Error streams to the Output stream
        :return: The current PowerShell instance with the last command set to
            MergeError to the stream desired.
Controls where the Error stream of the last command in the pipeline
        will be sent to.
Controls where the Error stream of the last command in the pipeline will be sent to .
def merge_error(self, to="none"):
        """
        Controls where the Error stream of the last command in the pipeline
        will be sent to.

        :param to: Can be one of the following
            none: Send all Error streams to the Error stream
            output: Send all Error streams to the Output stream
        :return: The current PowerShell instance with the last command set to
            MergeError to the stream desired.
        """
        self._set_merge_to("merge_error", to, ["none", "output"])

        # For V2 backwards compatibility
        if to == "none":
            my_result = self._current_command.merge_error
        else:
            my_result = PipelineResultTypes(value=PipelineResultTypes.ERROR)
        self._current_command.merge_my_result = my_result
        self._current_command.merge_to_result = \
            self._current_command.merge_error
        return self
def merge_error ( self , to = "none" ) : self . _set_merge_to ( "merge_error" , to , [ "none" , "output" ] ) # For V2 backwards compatibility if to == "none" : my_result = self . _current_command . merge_error else : my_result = PipelineResultTypes ( value = PipelineResultTypes . ERROR ) self . _current_command . merge_my_result = my_result self . _current_command . merge_to_result = self . _current_command . merge_error return self