A few web tutorials presenting custom CmdLets are calling the base methods
BeginProcessing, EndProcessing, ProcessRecord. But are those calls really
necessary (or even advised) ?
Thanks in advance,
Joannès
http://www.peoplewords.com
A few web tutorials presenting custom CmdLets are calling the base methods
BeginProcessing, EndProcessing, ProcessRecord. But are those calls really
necessary (or even advised) ?
Thanks in advance,
Joannès
http://www.peoplewords.com
"Joannes Vermorel" <JoannesVermorel@discussions.microsoft.com> wrote in
message news:8C7F9195-331A-42E6-844C-524D5747F1B5@microsoft.com...
>A few web tutorials presenting custom CmdLets are calling the base methods
> BeginProcessing, EndProcessing, ProcessRecord. But are those calls really
> necessary (or even advised) ?
It's a no-op according to Reflector i.e. those three methods in
System.Management.Automation.Cmdlet do nothing. So they don't need to be
called but calling them does nothing (other than waste a few cycles).
Personally I would remove the calls to avoid confusion.
--
Keith
| Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| get help on methods and properties | William | PowerShell | 3 | 22 Oct 2008 |
| Calling methods on DataContracts | rajigopal | Indigo | 3 | 04 Apr 2008 |
| Calling Methods on ? pipes | fixitchris | PowerShell | 1 | 06 Dec 2006 |
| Cmdlet, CallBacks and EndProcessing | Doug | PowerShell | 0 | 29 Nov 2006 |
| Output Methods | THG | PowerShell | 6 | 02 Jul 2006 |