From 8572f8a21a5db4e1a990e3ec53f26ba3618d2db3 Mon Sep 17 00:00:00 2001 From: Jarkko Peltonen Date: Wed, 27 Dec 2017 12:37:38 +0200 Subject: [PATCH] DeleteFile Added DeleteFile() to .NET interface. --- dotnet/IEC61850forCSharp/IEC61850ClientAPI.cs | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/dotnet/IEC61850forCSharp/IEC61850ClientAPI.cs b/dotnet/IEC61850forCSharp/IEC61850ClientAPI.cs index aef42ee1..d93da3af 100644 --- a/dotnet/IEC61850forCSharp/IEC61850ClientAPI.cs +++ b/dotnet/IEC61850forCSharp/IEC61850ClientAPI.cs @@ -1037,6 +1037,20 @@ namespace IEC61850 throw new IedConnectionException ("Write value failed", error); } + /// Delete file + /// The name of the file. + /// This exception is thrown if there is a connection or service error + public void DeleteFile(string fileName) + { + int error; + + IedConnection_deleteFile(connection, out error, fileName); + + if (error != 0) + throw new IedConnectionException("Deleting file " + fileName + " failed", error); + } + + /// Read the content of a file directory. /// The name of the directory. /// This exception is thrown if there is a connection or service error