AFFile.Download Method
- Last UpdatedJan 12, 2026
- 2 minute read
- PI System
- AF SDK 3.2.0
- Developer
Downloads the file from the server to a Stream.
Namespace: OSIsoft.AF.Asset
Assembly: OSIsoft.AFSDK (in OSIsoft.AFSDK.dll) Version: 3.2.0.7
Syntax
public Stream Download()
Public Function Download As Stream Dim instance As AFFile Dim returnValue As Stream returnValue = instance.Download()
public: Stream^ Download()
member Download : unit -> Stream
Return Value
Type: StreamReturns a Stream for the file.
Remarks
If the Owner has been set, then the file is downloaded from the server.
If the Owner has not been set, then the buffered file data will
be returned.