c# - cmdlet write to console with out writing to pipeline -


is there way can have class extends cmdlet write powershell console out writing pipeline?

i'm writing cmdlet write lot of objects pipeline (which people pipe cmdlet export-csv). problem if start writing info console picked well.

e.g object 1 object 2 "i info message has been logged powershell via this.writeobjct object 3

if try , pipe cmdlet cmdlet i'll object 1,2, info message , 3. need pipes object 1,2 , 3.

can point me in right direction?

you should use writedebug method or writeverbose. read more on msdn in: adding user messages cmdlet


Comments

Popular posts from this blog

wireshark - USB mapping with python -

c++ - nodejs socket.io closes connection before upgrading to websocket -

Deploying Qt Application on Android is really slow? -