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

AF SDK Reference

AFFile Constructor (AFObject)

  • Last UpdatedNov 18, 2025
  • 2 minute read
AFFile Constructor (AFObject)
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.

Version Information

AFSDK


See Also

In This Topic
Related Links
TitleResults for “How to create a CRG?”Also Available in