Specifies a group of attributes that must be applied in keeping with specified occurrence rules.
<attribute-group group-type="at-most-one | exactly-one | at-least-one" >
Specifies the occurrence rule for attributes in this group. For attributes in an attribute group, you can specify the following rules that should be used when a developer is using the control and applying attributes from the group:
Allowable values: at-most-one, exactly-one, at-least-one Use: Required. Type: AttributeGroupType. Default value: None. |
This element contains a list of attribute elements.
Parent: control-tag or method-tag.
Children: A sequence of attributes.
Use this element to define two or more attributes whose presence as annotations on a control or method is mutually dependent. For example, you might have a control that retrieves information from a file, but the file may be available through a file path or over HTTP. You could define an attribute group that includes a fileName attribute whose value must be a file-path and a fileURL attribute whose value must be a URL. Defining this in an attribute group whose group-type is exactly-one ensures that the developer will use only one of the attributes.