Moves or copies an OPC UA file or directory to another directory, or renames a file or directory.
'Declaration
Public Function MoveOrCopy( _
ByVal As UAEndpointDescriptor, _
ByVal As UANodeDescriptor, _
ByVal As UANodeId, _
ByVal As UANodeId, _
ByVal As Boolean, _
ByVal As String _
) As UANodeId
'Usage
Dim instance As EasyUAFileTransferClientCore
Dim endpointDescriptor As UAEndpointDescriptor
Dim directoryNodeDescriptor As UANodeDescriptor
Dim existingFileOrDirectoryNodeId As UANodeId
Dim newDirectoryNodeId As UANodeId
Dim copyObject As Boolean
Dim newName As String
Dim value As UANodeId
value = instance.MoveOrCopy(endpointDescriptor, directoryNodeDescriptor, existingFileOrDirectoryNodeId, newDirectoryNodeId, copyObject, newName)
Parameters
- endpointDescriptor
- Endpoint descriptor. Identifies the OPC-UA server.
- directoryNodeDescriptor
- Node descriptor of the OPC UA directory.
- existingFileOrDirectoryNodeId
- The node Id of the file or directory to move or copy.
- newDirectoryNodeId
- The node Id of the target directory of the move or copy command. If the file or directory is just renamed, the target directory matches the .
- copyObject
- A flag indicating if a copy of the file or directory should be created at the target directory.
- newName
- The new name of the file or directory in the new location. If the string is empty, the name is unchanged.
Return Value
Returns the node Id of the moved or copied object. Even if the object is moved, the server may return a new node Id for it.
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
Reference
EasyUAFileTransferClientCore Class
EasyUAFileTransferClientCore Members
Copy(IEasyUAFileTransfer,UAEndpointDescriptor,UANamedNodePath,String,String) Method
CopyFile(IEasyUAFileTransfer,UAEndpointDescriptor,UANamedNodePath,String,UANodeId,String) Method
Move(IEasyUAFileTransfer,UAEndpointDescriptor,UANamedNodePath,String,UANodeId,String) Method
MoveDirectory(IEasyUAFileTransfer,UAEndpointDescriptor,UANamedNodePath,String,UANodeId,String) Method
MoveFile(IEasyUAFileTransfer,UAEndpointDescriptor,UANamedNodePath,String,UANodeId,String) Method
MoveOrCopy(IEasyUAFileTransfer,UAEndpointDescriptor,UANamedNodePath,String,UANodeId,Boolean) Method
MoveOrCopyDirectory(IEasyUAFileTransfer,UAEndpointDescriptor,UANamedNodePath,String,UANodeId,Boolean) Method
MoveOrCopyFile(IEasyUAFileTransfer,UAEndpointDescriptor,UANamedNodePath,String,UANodeId,Boolean) Method
Rename(IEasyUAFileTransfer,UAEndpointDescriptor,UANamedNodePath,String,String) Method