CloseAndCommit is used to apply the content of the written file and to delete the temporary file after the completion of the transaction.
Signature
CloseAndCommit(
[in] UInt32 fileHandle
[out] NodeId completionStateMachine
);
Argument |
Description |
fileHandle |
The fileHandle used to write the file. |
completionStateMachine |
If the processing of the file is completed asynchronous, the parameter returns the NodeId of the corresponding FileTransferStateMachineType Object. If the processing of the file is already completed, the parameter is null. If a FileTransferStateMachineType Object NodeId is returned, the processing is in progress until the TransferState changed to Idle. |
Method Result Codes (defined in Call Service)
Result Code |
Description |
Bad_UserAccessDenied |
See OPC 10000-4 for a general description. |
Table 16 specifies the AddressSpace representation for the CloseAndCommit Method.
Table 16 – CloseAndCommit Method AddressSpace definition
Attribute |
Value |
||||
BrowseName |
CloseAndCommit |
||||
References |
NodeClass |
BrowseName |
DataType |
TypeDefinition |
ModellingRule |
HasProperty |
Variable |
InputArguments |
Argument[] |
PropertyType |
Mandatory |
HasProperty |
Variable |
OutputArguments |
Argument[] |
PropertyType |
Mandatory |
Conformance Units |
|||||
Base Info TemporaryFileTransferType Base |