Skip to content

Microsoft FactoryOrchestrator Core IFactoryOrchestratorService GetFile(string long int bool)

Microsoft.FactoryOrchestrator.Core

Microsoft.FactoryOrchestrator.Core.IFactoryOrchestratorService

IFactoryOrchestratorService.GetFile(string, long, int, bool) Method

Gets all the data in a file on the Service's computer. It is recommended you use FactoryOrchestratorClient::GetFileFromDevice instead.

byte[] GetFile(string sourceFilename, long offset=-1L, int count=0, bool getFromContainer=false);

Parameters

sourceFilename System.String
The path to the file to retrieve.

offset System.Int64
If -1, read the whole file. Otherwise the starting byte to read the file from.

count System.Int32
If offset is -1 this is ignored. Otherwise, the number of bytes to read from the file.

getFromContainer System.Boolean
If true, get the file from the container running on the connected device.

Returns

System.Byte[]
The bytes in the file.