IdeaBlade DevForce 2010 Help Reference
TriggerItem Class
Members  See Also  Send Feedback
IdeaBlade.Validation Assembly > IdeaBlade.Validation Namespace : TriggerItem Class



Defines the type and member name which will trigger verification.

Syntax

Visual Basic (Declaration) 
<DebuggerDisplayAttribute(Value="Trigger: {Type};{MemberName}", 
   Name="", 
   Type="", 
   Target=, 
   TargetTypeName="")>
<DataContractAttribute()>
Public Class TriggerItem 
Visual Basic (Usage)Copy Code
Dim instance As TriggerItem
C# 
[DebuggerDisplayAttribute(Value="Trigger: {Type};{MemberName}", 
   Name="", 
   Type="", 
   Target=, 
   TargetTypeName="")]
[DataContractAttribute()]
public class TriggerItem 
C++/CLI 
[DebuggerDisplayAttribute(Value="Trigger: {Type};{MemberName}", 
   Name="", 
   Type="", 
   Target=, 
   TargetTypeName="")]
[DataContractAttribute()]
public ref class TriggerItem 

Remarks

A TriggerItem is the minimum information necessary to describe some “event” on an object. A TriggerItem does not include any specification of “pre” or “post” semantics; these are specified separately in the TriggerContext.

The most common TriggerItem represents the "event" of setting a property on an object. The minimum necessary information to describe this “event” is the type of the class and the name of the property. There is no requirement that a TriggerItem be a property set operation. It might just as easily be some non-set operation being performed on an object (i.e. the calling of some method on the object). For this reason, any TriggerItem is represented most simply by a type and a name.

If the Type is not the same type as the Verifier.ApplicableType, you'll need to combine the TriggerItem with navigation information in a TriggerLink.

A TriggerItem is added to a verifier with Verifier.AddTrigger.

Inheritance Hierarchy

System.Object
   IdeaBlade.Validation.TriggerItem

Requirements

Target Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, Windows Vista, Windows Server 2008 family

See Also

© 2013 All Rights Reserved.