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

javascript - Laravel datatable invalid JSON response -

java - Exception in thread "main" org.springframework.context.ApplicationContextException: Unable to start embedded container; -

sql server 2008 - My Sql Code Get An Error Of Msg 245, Level 16, State 1, Line 1 Conversion failed when converting the varchar value '8:45 AM' to data type int -