Quantcast
Channel: VMware Communities: Message List
Viewing all articles
Browse latest Browse all 250391

Re: Clone VM using existing CustomizationSpec and changing ComputerName property

$
0
0

Ben,

 

The only code I had was this:

 

 

mySpec.Customization = itmSpecItem.Spec;
mySpec.Customization.Identity = itmSpecItem.Spec.Identity;

 

i'm struggling trying to manipulate it, so it looks like in your code you check to see if the thing coming is a spec right? it looks like the last line of your code block is more or less what i need, i wonder if i need to cast those as objects? or can i just get to them in a different way...just curious to keep the number of lines down. I'll poke at what you gave me and see what i come up with.

 

glad you enjoyed the code i wrote, i had been struggling with any sort of documentation or useful examples in terms of what i was trying to do. since i've posted that i'm beginning to think that most of that could be condensed down to really just a couple of functions, as i believe i can pass types in, but i'm still really novice at c# right now.


Viewing all articles
Browse latest Browse all 250391

Trending Articles