AFFile.Download Method
- Last UpdatedNov 18, 2025
- 2 minute read
- PI System
- AF SDK 2024 R2
- Developer
Downloads the file from the server to a Stream.
Namespace: OSIsoft.AF.Asset
Assembly: OSIsoft.AFSDK (in OSIsoft.AFSDK.dll) Version: 3.1.1.1182
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.