ES2Writer.Delete
Parameters
tag | The tag that we want to mark for deletion. |
Description
Marks a tag for deletion. Note that this does not delete the tag from the ES2Writer, but instead deletes it from the file we’re writing to when ES2Writer.Save() is called.
C#
Saving tags to an ES2Writer
1 2 3 4 5 6 7 8 |
using(ES2Writer writer = ES2Writer.Create("myFile.txt")) { // Delete some tags from our target file. writer.Delete("tagToDelete"); writer.Delete("anotherTagToDelete); // Remember to save when we're done. writer.Save(); } |
JS
Saving tags to an ES2Writer
1 2 3 4 5 6 7 |
var writer : ES2Writer = ES2Writer.Create("myFile.txt"); // Delete some tags from our target file. writer.Delete("tagToDelete"); writer.Delete("anotherTagToDelete); // Remember to save and dispose when you're finished. writer.Save(); writer.Dispose(); |