PISystem.FileMaxLength Property
- Last UpdatedNov 18, 2025
- 2 minute read
- PI System
- AF SDK 2024 R2
- Developer
The maximum allowed file size for an AFFile.
Namespace: OSIsoft.AF
Assembly: OSIsoft.AFSDK (in OSIsoft.AFSDK.dll) Version: 3.1.1.1182
Syntax
public int FileMaxLength { get; }
Public ReadOnly Property FileMaxLength As Integer Get Dim instance As PISystem Dim value As Integer value = instance.FileMaxLength
public: property int FileMaxLength { int get (); }
member FileMaxLength : int with get
Property Value
Type: Int32Returns the maximum allowed file size for an AFFile in megabytes. If this returns a value less than or equal to zero, then all files are blocked.
Remarks
This value can be used to validate user input when uploading files to the PISystem.
This validation settings can be modified using the SetFileOptions(PISystem, IListString, Int32) method
or using the AFDiag utility.