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



View with Navigation Tools
OpcLabs.EasyOpcUA Assembly > OpcLabs.EasyOpc.UA.FileTransfer Namespace > UAFileProperties Class : Size Property
The size of the file, in bytes.
Syntax
'Declaration
 
<ValueLimitsAttribute(0, 9223372036854775807)>
Public Property Size As Long
 
'Usage
 
Dim instance As UAFileProperties
Dim value As Long
 
instance.Size = value
 
value = instance.Size

Property Value

The default value of this property is 0.

Exceptions
ExceptionDescription

The value of an argument is outside the allowable range of values as defined by the invoked method.

This is a usage error, i.e. it will never occur (the exception will not be thrown) in a correctly written program. Your code should not catch this exception.

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