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

pathName
Name of the XML file

Glossary Item Box

Reads the specified file and de-serialize it into an OPCItemDef array.
Errors throw an exception. The application program needs to catch and handle these exceptions.

Syntax

Visual Basic (Declaration) 
Public Function ReadFile( _
   ByVal pathName As String _
) As OPCItemDef()
C# 
public OPCItemDef[] ReadFile( 
   string pathName
)

Parameters

pathName
Name of the XML file

Return Value

OPCItemDef array with the deserialized data from the XML file.

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.