[AttributeUsage(AttributeTargets.Class, AllowMultiple = false, Inherited = false)]
public sealed class SourceAttribute : System.Attribute
When applied to a public class, marks this class as a source object. This attribute is optional. Source objects are a cornerstone element of Code Effects. See the source object topic for details.
Gets or sets the value indicating whether Code Effects component should only use public members declared by the source object and disregard members of its base class(es). The default value is False. Notice that members of the System.Object class are ignored by Code Effects regardless of the value of this property. This property plays an important role in the technique of preserving attributes in auto-generated classes.
Code Effects component performs a recursive search of all reference type members of the source object and includes all their value type members not decorated with ExcludeFromEvaluationAttribute as rule fields. The recursive search for value type members is performed up to the level set by this optional property. The default value is 4. Setting the MaxTypeNestingLevel to a higher number may slow down the performance of the Rule Editor while it renders itself on a page.
Gets or sets the value indicating whether Code Effects component should store the name of the source object's type in the Rule XML. The default value is True. Set the value of this property to False if you generate source objects dynamically and don't know their types at design time.
[Source(MaxTypeNestingLevel = 2)]
public class Test
Post your support requests on Stackoverflow.com
. You can also post your comments and product feedback using the form at the bottom of this page.