PSObject Event
Fires when a new object is parsed on the server output.
Syntax
[VB.NET] Public Event OnPSObject As OnPSObjectHandler
[C#] public event OnPSObjectHandler OnPSObject; public delegate void OnPSObjectHandler(object sender, PsclientPSObjectEventArgs e); class PsclientPSObjectEventArgs : EventArgs { string BaseType {get;} string Value {get;} }
Remarks
The PSObject event is fired whenever a PowerShell object is parsed completely from the pipeline output returned by the server.
BaseType contains the primary base type of the output object and Value will contain the string representation of the object value for simple types (like a string or a number).