/// <summary> /// Display the initial progress message for the first cmdlet in the chain.<para/> /// Returns an integer so that overridden instances of this method may support progress scenarios such as streaming /// (where a "detecting total number of items" message is displayed before requesting the object totals. /// </summary> /// <returns>-1. Override this method in a derived class to optionally return the total number of objects that will be retrieved.</returns> protected virtual int DisplayFirstInChainMessage() { int count = -1; SetObjectSearchProgress(ProcessingOperation.Retrieving); ProgressManager.DisplayInitialProgress(); return(count); }