ReflectedAsyncActionDescriptor.IsDefined(Type, Boolean) 方法

定义

确定是否为操作成员定义指定特性类型的一个或多个实例。

public override bool IsDefined (Type attributeType, bool inherit);
override this.IsDefined : Type * bool -> bool
Public Overrides Function IsDefined (attributeType As Type, inherit As Boolean) As Boolean

参数

attributeType
Type

自定义特性的类型。

inherit
Boolean

如果为 true,则查找继承的自定义属性的层次结构链;否则为 false。

返回

如果为此成员定义了 由 attributeType 表示的类型的属性,则为 true;否则为 false。

适用于