Skip to content

HandlesMessageAttribute

HandlesMessageAttribute declares that a plugin class handles a specific Dataverse message such as Create or Update.

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.

[HandlesMessageAttribute("Update")]
  • HandlesMessageAttribute(string messageName)
  • MessageName — required message name stored on the attribute instance.
  • The constructor throws when messageName is null, empty, or whitespace.
  • The attribute only records the declared message name; downstream tools decide how to interpret it.

Use this attribute when message-level intent should be explicit on the plugin class, especially when tooling reads attributes via reflection.