From 36a1660d71e35f3b7ba6b38ea168e0c177a4a967 Mon Sep 17 00:00:00 2001 From: Michael Zillgith Date: Wed, 27 Dec 2017 16:22:32 +0100 Subject: [PATCH] - .NET API: Added DeleteFile (from pull request #44 by jpeltonen) --- dotnet/IEC61850forCSharp/IEC61850ClientAPI.cs | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/dotnet/IEC61850forCSharp/IEC61850ClientAPI.cs b/dotnet/IEC61850forCSharp/IEC61850ClientAPI.cs index 9aa0cb4d..e51c94c4 100644 --- a/dotnet/IEC61850forCSharp/IEC61850ClientAPI.cs +++ b/dotnet/IEC61850forCSharp/IEC61850ClientAPI.cs @@ -1051,6 +1051,18 @@ namespace IEC61850 if (error != 0) 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.