From e37208c3433dc02a1d47a2515d18acf9a1b1a822 Mon Sep 17 00:00:00 2001 From: Koen Zomers Date: Mon, 31 Jul 2023 23:13:54 +0200 Subject: [PATCH] Update Get-PnPFile.md Fixing incorrect syntax for optional parameters, adding missing memorystream option --- documentation/Get-PnPFile.md | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/documentation/Get-PnPFile.md b/documentation/Get-PnPFile.md index 6607193fb..126bbb427 100644 --- a/documentation/Get-PnPFile.md +++ b/documentation/Get-PnPFile.md @@ -16,25 +16,27 @@ Downloads a file ### Return as file object (Default) ```powershell -Get-PnPFile [-Url] -AsFileObject [-Connection ] - +Get-PnPFile -Url -AsFileObject [-Connection ] ``` ### Return as list item ```powershell -Get-PnPFile [-Url] -AsListItem [-ThrowExceptionIfFileNotFound] - [-Connection ] +Get-PnPFile -Url -AsListItem [-ThrowExceptionIfFileNotFound] [-Connection ] ``` ### Save to local path ```powershell -Get-PnPFile [-Url] -AsFile [-Path ] [-Filename ] [-Force] - [-Connection ] +Get-PnPFile -Url -AsFile -Path -Filename [-Force] [-Connection ] ``` ### Return as string ```powershell -Get-PnPFile [-Url] -AsString [-Connection ] +Get-PnPFile -Url -AsString [-Connection ] +``` + +### Return as memorystream +```powershell +Get-PnPFile -Url -AsMemoryStream [-Connection ] ``` ## DESCRIPTION