OPCDA.NET Reference Manual
WriteFile Method
See Also  Send Feedback
OpcDaNetUA.Net4 Assembly > OPCDA.NET Namespace > XmlIO Class : WriteFile Method

defs
OPCItemDef array to be serialized
pathName
Name of the XML file the serialized data is written to.

Glossary Item Box

Serializes the specified OPCItemDef array and writes the XML text into the specified file.
Errors throw an exception. The application program needs to catch and handle these exceptions.

Syntax

Visual Basic (Declaration) 
Public Sub WriteFile( _
   ByVal defs() As OPCItemDef, _
   ByVal pathName As String _
) 
C# 
public void WriteFile( 
   OPCItemDef[] defs,
   string pathName
)

Parameters

defs
OPCItemDef array to be serialized
pathName
Name of the XML file the serialized data is written to.

Requirements

Target Platforms: Windows 7/8/10, Windows Server 2003/2008/2012/2016, .NET 4.x

See Also

Copyright © 2002-2018 Advosol Inc. All Rights Reserved.