Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

VMWare VIM SDK .Net, update CustomFieldValue

Status
Not open for further replies.

kristofdielis

Programmer
Sep 1, 2011
25
Hi,

I am not sure if this is the correct forum for SDK questions, please redirect me to a correct one if not, but here goes:

I have this code:

Code:
public void SetFieldValue(int key, string value)
{
    var customField = (CustomFieldStringValue)this.VirtualMachine.CustomValue.Single(cv => cv.Key == key);

    customField.Value = value;
}

That in itself works, as in, it's visible that the value has changed, but I don't see it reflected upon the actual custom field on the VM when viewed in the vSphere Client.
So, is there a save I need to do, or do I have to change the value in another fashion?

Thanks
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top