IdeaBlade.Core Assembly > IdeaBlade.Core Namespace > PropertyInterceptorAttribute Class : Order Property |
'Declaration
Public Property Order As Double
'Usage
Dim instance As PropertyInterceptorAttribute Dim value As Double instance.Order = value value = instance.Order
public double Order {get; set;}
public partial class Employee { // Sample interceptors with the Order attribute set. // Lower values are executed before higher values. // Here, BeforeGetLastName2 will be executed before BeforeGetLastName3. [BeforeGet(EntityPropertyNames.LastName, Order = 3.0)] public static void BeforeGetLastName3(IPropertyInterceptorArgs args) { var emp = args.Instance as Employee; Console.WriteLine("emp:BeforeGetLastName3"); } [BeforeGet(EntityPropertyNames.LastName, Order = 2.0)] public static void BeforeGetLastName2(PropertyInterceptorArgs<Employee, String> args) { var emp = args.Instance as Employee; Console.WriteLine("emp:BeforeGetLastName2"); } }
Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2