AFFile Constructor (AFObject)
- Last UpdatedNov 18, 2025
- 2 minute read
- PI System
- AF SDK 2024 R2
- Developer
Initializes a new AFFile instance with default values that is owned by
the specified AFObject.
Namespace: OSIsoft.AF.Asset
Assembly: OSIsoft.AFSDK (in OSIsoft.AFSDK.dll) Version: 3.1.1.1182
Syntax
public AFFile( AFObject owner )
Public Sub New ( owner As AFObject ) Dim owner As AFObject Dim instance As New AFFile(owner)
public: AFFile( AFObject^ owner )
new : owner : AFObject -> AFFile
Parameters
- owner
- Type: OSIsoft.AFAFObject
The AFObject that owns this file object. If the owner is not yet known, then can be set to .
Remarks
The new AFFile instance that represents a new file associated with
the specified owner object.
Calling Upload Overload or
Download Overload methods will read or write the
Stream to the server.