Partager via


IPlugin.Execute Method

Applies To: Microsoft Dynamics CRM 2013, Microsoft Dynamics CRM Online

Executes plug-in code in response to an event.

Namespace: Microsoft.Xrm.Sdk
Assembly: Microsoft.Xrm.Sdk (in Microsoft.Xrm.Sdk.dll)

Syntax

'Declaration
Sub Execute ( _
    serviceProvider As IServiceProvider _
)
void Execute (
    IServiceProvider serviceProvider
)

Parameters

Remarks

Called by the event execution pipeline during processing of a message request for which the plug-in was registered. For more information, see the IServiceProvider Interface. The notification service is only provided for asynchronous registered plug-ins.

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Platforms

Development Platforms

Windows Server 2008, Windows Server 2012, Windows 7 (All Versions), Windows 8 (All Versions)

Target Platforms

Windows Server 2008, ,Windows Server 2012, ,Windows 7 (All Versions),

See Also

Reference

IPlugin Interface
IPlugin Members
Microsoft.Xrm.Sdk Namespace

Other Resources

Write a Plug-in
Event Execution Pipeline
Plug-ins for Extending Microsoft Dynamics CRM

Send comments about this topic to Microsoft.
© 2013 Microsoft Corporation. All rights reserved.