OPC Studio User's Guide and Reference
Size Property (UAFileProperties)



OpcLabs.EasyOpcUA Assembly > OpcLabs.EasyOpc.UA.FileTransfer Namespace > UAFileProperties Class : Size Property
The size of the file, in bytes.
Syntax
'Declaration
 
<ValueRangeAttribute(0, 9223372036854775807)>
Public Property Size As Long
'Usage
 
Dim instance As UAFileProperties
Dim value As Long
 
instance.Size = value
 
value = instance.Size
[ValueRange(0, 9223372036854775807)]
public long Size {get; set;}
[ValueRange(0, 9223372036854775807)]
public:
property int64 Size {
   int64 get();
   void set (    int64 value);
}

Property Value

Valid values of this property are in the range from 0 to 9223372036854775807 (Int64.MaxValue).

The default value of this property is 0.

Remarks

This property corresponds to a mandatory OPC UA property on the FileType object - see .

"When a file is opened for write the size might not be accurate."

Requirements

Target Platforms: .NET Framework: Windows 10 (selected versions), Windows 11 (selected versions), Windows Server 2016, Windows Server 2022; .NET: Linux, macOS, Microsoft Windows

See Also