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.

Namespace:   Microsoft.VisualStudio.Modeling
Assembly:  Microsoft.VisualStudio.Modeling.Sdk.12.0 (in Microsoft.VisualStudio.Modeling.Sdk.12.0.dll)

System.Object
  System.Attribute
    Microsoft.VisualStudio.Modeling.RuleOnAttribute

[AttributeUsageAttribute(AttributeTargets.Class, AllowMultiple = true)]
public sealed class RuleOnAttribute : Attribute

NameDescription
System_CAPS_pubmethodRuleOnAttribute(String)

Initializes a new instance of the RuleOnAttribute class.

System_CAPS_pubmethodRuleOnAttribute(Type)

Initializes a new instance of the RuleOnAttribute class.

NameDescription
System_CAPS_pubpropertyAttachDomainType

The domain class, relationship, shape, connector or diagram to which this rule applies.

System_CAPS_pubpropertyAttachDomainTypeId

Gets the ID of the domain type to which this rule applies.

System_CAPS_pubpropertyFireTime

Gets or sets the time when the rule is executed.

System_CAPS_pubpropertyInitiallyDisabled

If true, the rule must be explicitly enabled using IsEnabled.

System_CAPS_pubpropertyPriority

Gets or sets the priority in which the rule is raised.

System_CAPS_pubpropertyTypeId

(Inherited from Attribute.)

NameDescription
System_CAPS_pubmethodEquals(Object)

(Inherited from Attribute.)

System_CAPS_pubmethodGetHashCode()

(Inherited from Attribute.)

System_CAPS_pubmethodGetType()

(Inherited from Object.)

System_CAPS_pubmethodIsDefaultAttribute()

(Inherited from Attribute.)

System_CAPS_pubmethodMatch(Object)

(Inherited from Attribute.)

System_CAPS_pubmethodToString()

(Inherited from Object.)

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.

Return to top
Show: