SourceAttribute class

Namespace: CodeEffects.Rule.Attributes
Assembly: CodeEffects.Rule.dll

Syntax

[AttributeUsage(AttributeTargets.Class, AllowMultiple = true, Inherited = true)]
public sealed class ClauseAttribute : System.Attribute

Notes

Source object is a cornerstone element of Web Rule. See the source object topic for details.

Properties

  • MaxTypeNestingLevel Type: System.Int32

    Web Rule 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 are performed up to the level set by this optional property. The default value is 4. Setting MaxTypeNestingLevel to a higher number may slow performance of Web Rule down while it renders itself on the page.

Example

using CodeEffects.Rule.Attributes;

namespace TestLibrary
{
	[Source(MaxTypeNestingLevel = 2)]
	public class Test
	{
		// ...
	}
}
Code Effects Software ©  · Web Scheduler · CodeEffects.com
Current version 2.0.1.4 · Built on March 27, 2012
Terms and Conditions · Privacy Policy