Skip to content

Commit

Permalink
Update Get-PnPFile.md
Browse files Browse the repository at this point in the history
Fixing incorrect syntax for optional parameters, adding missing memorystream option
  • Loading branch information
KoenZomers authored Jul 31, 2023
1 parent 4058ac2 commit e37208c
Showing 1 changed file with 9 additions and 7 deletions.
16 changes: 9 additions & 7 deletions documentation/Get-PnPFile.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,25 +16,27 @@ Downloads a file

### Return as file object (Default)
```powershell
Get-PnPFile [-Url] <String> -AsFileObject [-Connection <PnPConnection>]
Get-PnPFile -Url <String> -AsFileObject [-Connection <PnPConnection>]
```

### Return as list item
```powershell
Get-PnPFile [-Url] <String> -AsListItem [-ThrowExceptionIfFileNotFound]
[-Connection <PnPConnection>]
Get-PnPFile -Url <String> -AsListItem [-ThrowExceptionIfFileNotFound] [-Connection <PnPConnection>]
```

### Save to local path
```powershell
Get-PnPFile [-Url] <String> -AsFile [-Path <String>] [-Filename <String>] [-Force]
[-Connection <PnPConnection>]
Get-PnPFile -Url <String> -AsFile -Path <String> -Filename <String> [-Force] [-Connection <PnPConnection>]
```

### Return as string
```powershell
Get-PnPFile [-Url] <String> -AsString [-Connection <PnPConnection>]
Get-PnPFile -Url <String> -AsString [-Connection <PnPConnection>]
```

### Return as memorystream
```powershell
Get-PnPFile -Url <String> -AsMemoryStream [-Connection <PnPConnection>]
```

## DESCRIPTION
Expand Down

0 comments on commit e37208c

Please sign in to comment.