ReflectedControllerDescriptor.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。

返回

如果为此成员定义了自定义属性类型,则为 true;否则为 false。

适用于