RuleOnAttribute Class
Signifies that the class to which this attribute is applied is a rule. The attribute’s parameter specifies what domain class applies to.
Assembly: Microsoft.VisualStudio.Modeling.Sdk.12.0 (in Microsoft.VisualStudio.Modeling.Sdk.12.0.dll)
| Name | Description | |
|---|---|---|
![]() | RuleOnAttribute(String^) | Initializes a new instance of the RuleOnAttribute class. |
![]() | RuleOnAttribute(Type^) | Initializes a new instance of the RuleOnAttribute class. |
| Name | Description | |
|---|---|---|
![]() | AttachDomainType | The domain class, relationship, shape, connector or diagram to which this rule applies. |
![]() | AttachDomainTypeId | Gets the ID of the domain type to which this rule applies. |
![]() | FireTime | Gets or sets the time when the rule is executed. |
![]() | InitiallyDisabled | If true, the rule must be explicitly enabled using IsEnabled. |
![]() | Priority | Gets or sets the priority in which the rule is raised. |
![]() | TypeId | (Inherited from Attribute.) |
| Name | Description | |
|---|---|---|
![]() | Equals(Object^) | (Inherited from Attribute.) |
![]() | GetHashCode() | (Inherited from Attribute.) |
![]() | GetType() | (Inherited from Object.) |
![]() | IsDefaultAttribute() | (Inherited from Attribute.) |
![]() | Match(Object^) | (Inherited from Attribute.) |
![]() | ToString() | (Inherited from Object.) |
| Name | Description | |
|---|---|---|
![]() ![]() | _Attribute::GetIDsOfNames(Guid, IntPtr, UInt32, UInt32, IntPtr) | (Inherited from Attribute.) |
![]() ![]() | _Attribute::GetTypeInfo(UInt32, UInt32, IntPtr) | (Inherited from Attribute.) |
![]() ![]() | _Attribute::GetTypeInfoCount(UInt32) | (Inherited from Attribute.) |
![]() ![]() | _Attribute::Invoke(UInt32, Guid, UInt32, Int16, IntPtr, IntPtr, IntPtr, IntPtr) | (Inherited from Attribute.) |
For more information and examples, see Rules Propagate Changes Within the Model.
The type of rule is determined by its base class. For example, AddRule, ChangeRule, DeleteRule.
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.



