私はこのコードを持っています:
foreach (PluginAssembly tempPluginAssembly in pluginAssemblyList)
{
if (!tempPluginAssembly.Name.StartsWith("Microsoft.Crm"))
{
List<PluginType> pluginList;
pluginList = xrmContext.PluginTypeSet.Where(Plugin => Plugin.PluginAssemblyId.Id == tempPluginAssembly.Id).ToList();
foreach (PluginType plugin in pluginList)
{
if (plugin.IsWorkflowActivity == false)
{
writer.WriteLine(new string[] { tempPluginAssembly.Name, tempPluginAssembly.Description, plugin.Name, String.Empty });
++pluginCount;
}
}
}
}
基本的には、crm 環境からアセンブリ リストを取得し、Microsoft アセンブリをフィルター処理します。次に、それらのアセンブリに含まれるすべての PluginType オブジェクトを取得し、その情報をどこかに記録します。しかし、これだけでは不十分です。各 PluginType オブジェクトに含まれるステップを取得したいと考えています。
どうすればそれを管理できますか?知らないクラスや、知らない PluginType オブジェクトの属性はありますか?