.net - Remove part from CompositonContainer -


wen using composition batch remove part container, how 1 reference part needs removed? compositon batch remove method takes composablepart. addpart method takes composablepart type parameter has on load (extension method) takes in object , uses attributedmodelservices.createpart composablepart. tried using attributedmodelservices.createpart on reference container, , using remove method didn't remove container.

i can save reference that's returned original addpart call, means i'd have persist reference throughout application. not want do. i've see examples of looping on container's parts seems hacky me.

how container return need.

psuedo code

compositionbatch batch = new compositionbatch([] { part1, part2 }, []{}); container.compose(batch);  var partref = container.getexport<part2>();  batch = new compositionbatch(); batch.removepart(partref);  container.compose(batch); 


Comments

Popular posts from this blog

jquery - Invalid Assignment Left-Hand Side -

java - Play! framework 2.0: How to display multiple image? -

gmail - Is there any documentation for read-only access to the Google Contacts API? -