Visual Studio Development Bookmark and Share   
 index > Visual Studio Guidance Automation Toolkit > Is it possible to call an action from a Converter ?
 

Is it possible to call an action from a Converter ?

Hi,

maybe it's a stupid but i ask myself if it possible to call an action from a converter... I don't know how to do that.

My basis needs is to get information from an item (a config file) in a wizard... Usuallyi use actions for getting information from solution (like searching a config file item) but i don't know on how to do it from converter.

So this question can have two different answer (i will get one i hope ;-)) :

- how getting a specific ProjectItem from a converter ?

- OR how calling action from a converter ?

Thanks in advance.

MephistoDark  Friday, July 20, 2007 2:26 PM
To answer your question, yes, it's possible to call an action from a converter, you would need to programmatically instantiate the action's type, site it, and call it's Execute method. That should work.

Now, if what you're looking is to retrieve values from the solution, I would suggest you use a ValueProvider instead (please take a look at the docs and samples for them).

thanks,
-Victor
vga  Sunday, July 22, 2007 5:29 PM
To answer your question, yes, it's possible to call an action from a converter, you would need to programmatically instantiate the action's type, site it, and call it's Execute method. That should work.

Now, if what you're looking is to retrieve values from the solution, I would suggest you use a ValueProvider instead (please take a look at the docs and samples for them).

thanks,
-Victor
vga  Sunday, July 22, 2007 5:29 PM
Thank for you answer,

ok i'm agree with you. I think that what i don't know is how to site action from converter. From an action it's ok, Action class give me a container property to do that... But for converter 's class base type, this inherited property seem not exist... How do you site action from converter ?

I notice your suggestion too, thank for it.
Regards,
MephistoDark  Sunday, July 22, 2007 6:44 PM

You can use google to search for other answers

Custom Search

More Threads

• Compile Error CS0579: Duplicate 'AssemblyVersion' attribute
• Web Services Software Factory install Error
• How to add a parameter to the path of the file?
• Unexpected Menu Behavior
• Uninstalling Missing Packages
• Retreiving project for an unbound recipe
• about gudance automation toolkit
• Parse referenced assemblies
• Get a project reference to a website project
• Service Factory installation problem...