MemberConditionAttribute.GroupName Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Gets the group name for this attribute. This is relevant when multiple attributes that inherit ConditionBaseAttribute are present. The IsConditionMet values of attributes in the same group are "OR"ed together. While the value from different groups is "AND"ed together. In other words, a test will be ignored if any group has all its IsConditionMet values as false.
public override string GroupName { get; }
member this.GroupName : string
Public Overrides ReadOnly Property GroupName As String
Property Value
Remarks
Each MemberConditionAttribute instance produces a group name derived from ConditionType, ConditionMemberNames, and Mode, so stacking multiple MemberConditionAttribute declarations on the same target combines them with a logical AND -- including pairs with the same type/members but opposite ConditionMode values, which would otherwise silently cancel each other out.