Class TypeConstraintAttribute
Specifies type constraints on the AssociatedObject of TargetedTriggerAction and EventTriggerBase.
[AttributeUsage(AttributeTargets.Class, AllowMultiple = false, Inherited = false)]
public sealed class TypeConstraintAttribute : Attribute
- Inheritance
-
TypeConstraintAttribute
- Inherited Members
- Extension Methods
Constructors
TypeConstraintAttribute(Type)
Initializes a new instance of the TypeConstraintAttribute class.
public TypeConstraintAttribute(Type constraint)
Parameters
constraint
TypeThe constraint type.
Properties
Constraint
Gets the constraint type.
public Type Constraint { get; }
Property Value
- Type
The constraint type.