'Declaration Public Property Weight As Integer
'Usage Dim instance As RuleDefinition Dim value As Integer instance.Weight = value value = instance.Weight
public int Weight {get; set;}
'Declaration Public Property Weight As Integer
'Usage Dim instance As RuleDefinition Dim value As Integer instance.Weight = value value = instance.Weight
public int Weight {get; set;}
Exception | Description |
---|---|
System.ArgumentOutOfRangeException | Thrown when setting to a value less than -100 or greater than 100. |
Useful when using multiple rules of varying importance. Rules that are more important should be assigned a higher weight. A weight of zero will cause the rule to have no effect.
Default: 10.