locked
how to add Constraints in override method CacheMetadata() in .Net 4.0 Beta2 RRS feed

  • General discussion

  • hi,
    i have used following code to add constraints in workflow designer project in Beta1

     

     

    protected override void OnGetConstraints(IList<System.Activities.Validation.Constraint> constraints)

    {

    constraints.Add(

     

    EclpConstraint.GetRuleIfThenElseNullCheck());

     

     

    base.OnGetConstraints(constraints);

    }

    now in Beta2 for this only one override function is there and that is CacheMetadata(),
    but in this i am not able to find any way to add my custom Constraints as in Beta1.
    i can add argument, child using this function. But what about Constraints..


    Can Any body through some light on this...
    Regards,
    suhas joyous

    Thursday, October 29, 2009 8:29 AM

All replies

  • i got answer from given samples....

    its easy
    you just have to write Constraints.Add(your constraint Object) in overriden metatdatacash function.
    Friday, October 30, 2009 6:49 AM