Interface IPluginEventContext
Event context for a plugin.
Assembly: Hsl.Xrm.Sdk.Plugin.dll
Syntax
public interface IPluginEventContext : IBasePluginEventContext, IEventContext
Properties
ConfigManager
Declaration
PluginConfigurationManager ConfigManager { get; }
Property Value
TargetInput
Declaration
Entity TargetInput { get; }
Property Value
Type |
Description |
Microsoft.Xrm.Sdk.Entity |
|
TargetInputEntityReference
Declaration
EntityReference TargetInputEntityReference { get; }
Property Value
Type |
Description |
Microsoft.Xrm.Sdk.EntityReference |
|
TargetPostImage
Declaration
Entity TargetPostImage { get; }
Property Value
Type |
Description |
Microsoft.Xrm.Sdk.Entity |
|
TargetPreImage
Declaration
Entity TargetPreImage { get; }
Property Value
Type |
Description |
Microsoft.Xrm.Sdk.Entity |
|
Methods
AttributeChangedPreImageToPostImage(String)
Declaration
bool AttributeChangedPreImageToPostImage(string attribute)
Parameters
Type |
Name |
Description |
System.String |
attribute |
|
Returns
Type |
Description |
System.Boolean |
|
AttributeChangedPreImageToTarget(String)
Declaration
bool AttributeChangedPreImageToTarget(string attribute)
Parameters
Type |
Name |
Description |
System.String |
attribute |
|
Returns
Type |
Description |
System.Boolean |
|
GetTargetValue<T>(String)
Gets an attribute from the PostImage Target, InputParameters, or PreImage Target parameter, in that order.
If the value is not found in any of them, then a value of default(T) will be returned.
Declaration
T GetTargetValue<T>(string attributeName)
Parameters
Type |
Name |
Description |
System.String |
attributeName |
|
Returns
Type Parameters
Initialize(String, IServiceProvider, PluginConfigurationManager, PluginTraceConfiguration)
Declaration
void Initialize(string pluginName, IServiceProvider serviceProvider, PluginConfigurationManager configManager, PluginTraceConfiguration traceConfig)
Parameters