Smartsheet.Api.Internal.SheetResourcesImpl.GetSheetAsCSV C# (CSharp) Method

GetSheetAsCSV() public method

Get a sheet as a CSV file.

It mirrors To the following Smartsheet REST API method:
GET /sheets/{sheetId} with "text/csv" Accept HTTP header

if any argument is null or empty string if there is any problem with the REST API request if there is any problem with the REST API authorization (access token) if the resource cannot be found if the REST API service is not available (possibly due To rate limiting) if there is any other error during the operation
public GetSheetAsCSV ( long sheetId, BinaryWriter outputStream ) : void
sheetId long the Id of the sheet
outputStream System.IO.BinaryWriter the output stream To which the CSV file will be written.
return void
        public void GetSheetAsCSV(long sheetId, BinaryWriter outputStream)
        {
            GetSheetAsFile(sheetId, null, outputStream, "text/csv");
        }