c# .net Adsense ADO.NET Linq Viruses/security asp.net MVC JQuery Angular-js Node-js SEO Java C++ SQL API Networking vb.net .Net Css JavaScript Generics c#.Net entity framework HTML Website host Website Construction Guide HTTP tutorial W3C tutorial Web Services JSON Psychology Ionic framework Angular ReactJS Python Computer Android
c# .net

How to remove all Meta keyword tags? -Jpeg Metadata Adapter

| | CSharp , MVC

I
am using jpeg metadata utility in c#. I want to remove the old keyword tags and
add new tags. When I used metaAdapter.Metadata.Keywords.Add(“”) it overwrites
with existing keywords. But I want to clear the existing keywords. Finally I
used clear function () before adding keyword.



 



Example:



 



JpegMetadataAdapter
metaAdapter =
new JpegMetadataAdapter(filePath);



metaAdapter.Metadata.Title
=
"Bus picture";



metaAdapter.Metadata.Subject
=
"New modern bus";



metaAdapter.Metadata.Keywords.Clear();



metaAdapter.Metadata.Keywords.Add("transport");



bool
saved = metaAdapter.Save();



 



More
details at https://github.com/mwijnands/JpegMetadata.



Note:
This nuget package is available in
NuGet.