TypeConstraintAttribute 類別

在 TargetedTriggerAction 和 EventTriggerBase 的 AssociatedObject 上指定類型限制。

命名空間: System.Windows.Interactivity
組件: System.Windows.Interactivity (在 system.windows.interactivity.dll 中)

語法

'宣告
<AttributeUsageAttribute(AttributeTargets.Class, AllowMultiple:=False, Inherited:=False)> _
Public NotInheritable Class TypeConstraintAttribute
    Inherits Attribute
'用途
Dim instance As TypeConstraintAttribute
[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
/** @attribute AttributeUsageAttribute(AttributeTargets.Class, AllowMultiple=false, Inherited=false) */ 
public final class TypeConstraintAttribute extends Attribute
AttributeUsageAttribute(AttributeTargets.Class, AllowMultiple=false, Inherited=false) 
public final class TypeConstraintAttribute extends Attribute

繼承階層

System.Object
System.Attribute
System.Windows.Interactivity.TypeConstraintAttribute

執行緒安全性

此型別的所有公用靜態 (Visual Basic 中為 Shared ) 成員均為安全執行緒。任何例項成員則不保證為安全執行緒。

另請參閱

參照

TypeConstraintAttribute 成員
System.Windows.Interactivity 命名空間