Microsoft FactoryOrchestrator Client FactoryOrchestratorClient GetFile(string long int bool)
Microsoft.FactoryOrchestrator.Client
Microsoft.FactoryOrchestrator.Client.FactoryOrchestratorClient
FactoryOrchestratorClient.GetFile(string, long, int, bool) Method
Asynchronously Gets all the data in a file on the Service's computer. It is recommended you use FactoryOrchestratorClient::GetFileFromDevice instead.
public System.Threading.Tasks.Task<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.Threading.Tasks.Task<System.Byte[]>
The bytes in the file.