This example is based on code in the TagLifecycle.cs sample file. This file is located in the following vCloud Suite SDK for .NET directory: client/samples/src/Samples/vmware/vcloud/suite/samples/cis/tagging/

This example is based on the information that is provided in Updating a Tag.

using System;
using vmware.cis.tagging;
 
// Format current time.
String newDescription = String.format(“Server tag updated at ({0}).”, DateTime.Now);
 
// Create update spec ta change Description field.
TagTypes.UpdateSpec updateSpec = new TagTypes.UpdateSpec();
updateSpec.SetDescription(newDescription);
 
// Apply update spec to tag.
var tagStub = myStubFactory.CreateStub<Tag>(myStubConfiguration);
tagStub.Update(myTagId, updateSpec);