DeleteFile

Added DeleteFile() to .NET interface.
pull/44/head
Jarkko Peltonen 8 years ago
parent e8288187c4
commit 8572f8a21a

@ -1037,6 +1037,20 @@ namespace IEC61850
throw new IedConnectionException ("Write value failed", error);
}
/// <summary>Delete file</summary>
/// <param name="directoryName">The name of the file.</param>
/// <exception cref="IedConnectionException">This exception is thrown if there is a connection or service error</exception>
public void DeleteFile(string fileName)
{
int error;
IedConnection_deleteFile(connection, out error, fileName);
if (error != 0)
throw new IedConnectionException("Deleting file " + fileName + " failed", error);
}
/// <summary>Read the content of a file directory.</summary>
/// <param name="directoryName">The name of the directory.</param>
/// <exception cref="IedConnectionException">This exception is thrown if there is a connection or service error</exception>

Loading…
Cancel
Save