Skip to content

SolutionComponentAttribute

SolutionComponentAttribute declares which Dataverse solution or solutions should receive a plugin component during automated registration.

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.

[SolutionComponentAttribute("CoreBusinessLogic", IsDefault = true)]
[SolutionComponentAttribute("ExtendedFeatures")]
  • SolutionComponentAttribute(string solutionUniqueName)
  • SolutionUniqueName — required solution unique name.
  • IsDefault — optional boolean flag, defaulting to false, for the primary solution choice when multiple attributes are present.
  • The constructor throws when solutionUniqueName is null, empty, or whitespace.
  • The attribute stores grouping metadata only; the registration order and behavior remain consumer responsibilities.

Use this attribute when registration tooling needs explicit solution grouping for a plugin component.