In Crm 2011 plugin when we register the plugin we can give secure and unsecure config informations.
When the plugin fires we can receive config informations automatically in the plugin constructor method which should be 2 parameters constructor.
Here you can see my PluginTest class has one constructior which will called by CRM automatically.
public class PluginTest : IPlugin
{
public PluginTest(string unsecureConfig, string secureConfig)
{
XmlDocument doc = new XmlDocument();
doc.LoadXml(unsecureConfig);
}
}
When the plugin fires we can receive config informations automatically in the plugin constructor method which should be 2 parameters constructor.
Here you can see my PluginTest class has one constructior which will called by CRM automatically.
public class PluginTest : IPlugin
{
public PluginTest(string unsecureConfig, string secureConfig)
{
XmlDocument doc = new XmlDocument();
doc.LoadXml(unsecureConfig);
}
}
No comments:
Post a Comment