Share via


TypeConstraintAttribute Class

Specifies type constraints on the AssociatedObject of IBehavior.

Inheritance Hierarchy

System.Object
  System.Attribute
    Microsoft.Xaml.Interactivity.TypeConstraintAttribute

Namespace:  Microsoft.Xaml.Interactivity
Assembly:  Microsoft.Xaml.Interactivity (in Microsoft.Xaml.Interactivity.dll)

Syntax

'Declaration
<AttributeUsageAttribute(AttributeTargets.Class, AllowMultiple := False, Inherited := False)> _
Public NotInheritable Class TypeConstraintAttribute _
    Inherits Attribute
[AttributeUsageAttribute(AttributeTargets.Class, AllowMultiple = false, Inherited = false)]
public sealed class TypeConstraintAttribute : Attribute
[AttributeUsageAttribute(AttributeTargets::Class, AllowMultiple = false, Inherited = false)]
public ref class TypeConstraintAttribute sealed : public Attribute
[<Sealed>]
[<AttributeUsageAttribute(AttributeTargets.Class, AllowMultiple = false, Inherited = false)>]
type TypeConstraintAttribute =  
    class 
        inherit Attribute 
    end
public final class TypeConstraintAttribute extends Attribute

The TypeConstraintAttribute type exposes the following members.

Constructors

  Name Description
Public method TypeConstraintAttribute Initializes a new instance of the TypeConstraintAttribute class.

Top

Properties

  Name Description
Public property Constraint Gets the constraint type.

Top

Methods

  Name Description
Public method Equals Infrastructure. Returns a value that indicates whether this instance is equal to a specified object. (Inherited from Attribute.)
Public method GetHashCode Returns the hash code for this instance. (Inherited from Attribute.)
Public method GetType Gets the Type of the current instance. (Inherited from Object.)
Public method ToString Returns a string that represents the current object. (Inherited from Object.)

Top

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

See Also

Reference

Microsoft.Xaml.Interactivity Namespace