- .NET API: Added DeleteFile (from pull request #44 by jpeltonen)

pull/44/merge
Michael Zillgith 8 years ago
parent 87c7429281
commit ebbfb85e7c

@ -1037,6 +1037,18 @@ namespace IEC61850
throw new IedConnectionException ("Write value failed", error);
}
/// <summary>Delete file</summary>
/// <param name="fileName">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