HandlesMessageAttribute
HandlesMessageAttribute
Section titled “HandlesMessageAttribute”HandlesMessageAttribute declares that a plugin class handles a specific Dataverse message such as Create or Update.
Manual Reference Note
Section titled “Manual Reference Note”This is a manual reference page based on the current public contract in xrmghost-attributes, which remains the source of truth until any future generated reference exists.
Usage Shape
Section titled “Usage Shape”[HandlesMessageAttribute("Update")]Constructor
Section titled “Constructor”HandlesMessageAttribute(string messageName)
Public Members
Section titled “Public Members”MessageName— required message name stored on the attribute instance.
Validation and Limits
Section titled “Validation and Limits”- The constructor throws when
messageNameis null, empty, or whitespace. - The attribute only records the declared message name; downstream tools decide how to interpret it.
When to Use It
Section titled “When to Use It”Use this attribute when message-level intent should be explicit on the plugin class, especially when tooling reads attributes via reflection.