File tree Expand file tree Collapse file tree 2 files changed +4
-22
lines changed Expand file tree Collapse file tree 2 files changed +4
-22
lines changed Original file line number Diff line number Diff line change @@ -113,7 +113,7 @@ Likes the page
113
113
114
114
### EXAMPLE 11
115
115
``` powershell
116
- Set-PnPPage -Identity "MyPage.aspx" -UnLike
116
+ Set-PnPPage -Identity "MyPage.aspx" -Like:$false
117
117
```
118
118
Unlikes the page
119
119
@@ -376,7 +376,7 @@ Accept wildcard characters: False
376
376
` ` `
377
377
378
378
### -Like
379
- Likes the page
379
+ Likes the page, if parameter is set to false then it Unlikes the page
380
380
381
381
` ` ` yaml
382
382
Type : SwitchParameter
@@ -389,19 +389,7 @@ Accept pipeline input: False
389
389
Accept wildcard characters : False
390
390
` ` `
391
391
392
- ### -UnLike
393
- Likes the page
394
-
395
- ` ` ` yaml
396
- Type : SwitchParameter
397
- Parameter Sets : (All)
398
392
399
- Required : False
400
- Position : Named
401
- Default value : None
402
- Accept pipeline input : False
403
- Accept wildcard characters : False
404
- ` ` `
405
393
406
394
## RELATED LINKS
407
395
Original file line number Diff line number Diff line change @@ -67,8 +67,6 @@ public class SetPage : PnPWebCmdlet, IDynamicParameters
67
67
[ Parameter ( Mandatory = false ) ]
68
68
public SwitchParameter Like = false ;
69
69
70
- [ Parameter ( Mandatory = false ) ]
71
- public SwitchParameter UnLike = false ;
72
70
73
71
private CustomHeaderDynamicParameters customHeaderParameters ;
74
72
@@ -185,12 +183,8 @@ protected override void ExecuteCmdlet()
185
183
if ( Like )
186
184
{
187
185
clientSidePage . Like ( ) ;
188
- }
189
- }
190
-
191
- if ( ParameterSpecified ( nameof ( UnLike ) ) )
192
- {
193
- if ( UnLike )
186
+ }
187
+ else
194
188
{
195
189
clientSidePage . Unlike ( ) ;
196
190
}
You can’t perform that action at this time.
0 commit comments