ITargetAwareCodeDomProvider.SupportsProperty(Type, String, Boolean) 方法

定义

指示在项目的目标框架中的指定类型是否具有指定的命名属性。

此 API 支持产品基础结构,不能在代码中直接使用。

public:
 bool SupportsProperty(Type ^ type, System::String ^ propertyName, bool isWritable);
public bool SupportsProperty (Type type, string propertyName, bool isWritable);
abstract member SupportsProperty : Type * string * bool -> bool
Public Function SupportsProperty (type As Type, propertyName As String, isWritable As Boolean) As Boolean

参数

type
Type

将要查询其属性的类型。

propertyName
String

要在 type 中查找的属性的名称。

isWritable
Boolean

指定属性是否必须包括 get 访问器的标志。

返回

true 如果在项目的目标框架的 type 具有 propertyname命名属性;否则 false

适用于