EasyUA Reference
CreateDefaultConfigurationFile Method
See Also  Send Feedback
EasyUA Assembly > Advosol.EasyUA Namespace > ConfigUtils Class : CreateDefaultConfigurationFile Method

cfgFilename
path of the file to be created.
appName
Application name defined in the configuration

Glossary Item Box

Crates a default UA configuration XML file

Syntax

Visual Basic (Usage)Copy Code
Dim cfgFilename As String
Dim appName As String
Dim value As Integer
 
value = ConfigUtils.CreateDefaultConfigurationFile(cfgFilename, appName)
C# 
public static int CreateDefaultConfigurationFile( 
   string cfgFilename,
   string appName
)

Parameters

cfgFilename
path of the file to be created.
appName
Application name defined in the configuration

Return Value

0:file created, -1: failure, 1:no file name specified, 2:file already exists

Requirements

Target Platforms: Windows 7/8/10, Windows Server 2003/2008/2012/2015, .NET4.x

See Also

Copyright © 2018 Advosol Inc. All Rights Reserved.