You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Jan 19, 2021. It is now read-only.
Remarks="Retrieves all subsites of the subsite Team1 and all of its nested child subsites returning the Id, Url, Title and ServerRelativeUrl of each subsite in the output",
31
+
Remarks="Retrieves all subsites of the subsite Team1 and all of its nested child subsites",
Remarks="Retrieves the rootweb, all subsites of the subsite Team1 and all of its nested child subsites",
36
+
SortOrder=5)]
33
37
publicclassGetSubWebs:PnPWebRetrievalsCmdlet<Web>
34
38
{
35
39
[Parameter(Mandatory=false,ValueFromPipeline=true,Position=0,HelpMessage="If provided, only the subsite with the provided Id, GUID or the Web instance will be returned")]
@@ -38,29 +42,69 @@ public class GetSubWebs : PnPWebRetrievalsCmdlet<Web>
38
42
[Parameter(Mandatory=false,HelpMessage="If provided, recursion through all subsites and their children will take place to return them as well")]
39
43
publicSwitchParameterRecurse;
40
44
45
+
[Parameter(Mandatory=false,HelpMessage="If provided, the results will also contain the rootweb")]
46
+
publicSwitchParameterIncludeRootWeb;
47
+
41
48
protectedoverridevoidExecuteCmdlet()
42
49
{
43
50
DefaultRetrievalExpressions=newExpression<Func<Web,object>>[]{ w =>w.Id, w =>w.Url, w =>w.Title, w =>w.ServerRelativeUrl};
0 commit comments