We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7741a21 commit a9eefe3Copy full SHA for a9eefe3
tools/Custom/ListCmdlet.cs
@@ -94,6 +94,10 @@ public void InitializePaging(ref global::System.Management.Automation.Invocation
94
}
95
96
int currentPageSize = invocationInfo.BoundParameters.ContainsKey("PageSize") ? PageSize : DefaultPageSize;
97
+ if (invocationInfo.BoundParameters.ContainsKey("Top") && limit < currentPageSize)
98
+ {
99
+ currentPageSize = limit;
100
+ }
101
// Explicitly set `-Top` parameter to currentPageSize in order for the generated cmdlets to construct a URL with a `$top` query parameter.
102
invocationInfo.BoundParameters["Top"] = currentPageSize;
103
top = currentPageSize;
0 commit comments