Please ensure Javascript is enabled for purposes of website accessibility
Powered by Zoomin Software. For more details please contactZoomin

AVEVA™ Engineering

StreamFiles

  • Last UpdatedJan 05, 2022
  • 1 minute read

Streams file from Dashboard.

Syntax

Public static bool StreamFiles (

string strURL,

string strPath2Save,

string strFileFUllID,

out string strFileName,

out string strErrorMessage

)

Parameters

strURL

The dashboard URL to be queried for streaming file.

strPath2Save

Path to save file.

strFileFUllID

Full ID of file to be streamed.

strErrorMessage

When this method returns, contains the error message, if fails otherwise, contains String.Empty.

strFileName

When this method returns, contains the name of the file streamed from DashBoard, if file is available otherwise, contains String.Empty.

Return value

true if success; otherwise, false.

Example

string strMessage = string.Empty;

string strFileName = string.Empty;

if (StreamFiles (

"http://inhyzvms8r09:16000/",

System.IO.Path.GetTempPath(),

"IPE|905675",

Out strFileName , out strMessage))

{

Console.WriteLine("File downloaded as {0}", System.IO.Path.Combine(System.IO.Path.GetTempPath(), strFileName));

}

else

{

Console.WriteLine("Failed - Error - {0}", strMessage);

}

TitleResults for “How to create a CRG?”Also Available in