Microsoft.Azure.Commands.Insights.EventCmdletBase.SetMaxEventsIfPresent C# (CSharp) Method

SetMaxEventsIfPresent() protected method

Sets the max number of records to fetch
protected SetMaxEventsIfPresent ( string currentQueryFilter, string name, int value ) : void
currentQueryFilter string
name string
value int
return void
        protected virtual void SetMaxEventsIfPresent(string currentQueryFilter, string name, int value)
        {
            if (value > 0 && value <= 100000)
            {
                this.MaxEvents = value;
            }
        }