Edit

Share via


ITargetAwareCodeDomProvider.SupportsProperty(Type, String, Boolean) Method

Definition

Indicates whether the specified type on the project target framework has a specified named property.

This API supports the product infrastructure and is not intended to be used directly from your code.

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

Parameters

type
Type

The type whose properties are to be queried.

propertyName
String

The name of the property to find in type.

isWritable
Boolean

A flag that indicates whether the property must include a get accessor.

Returns

true if type on the project target framework has a property named propertyname; otherwise, false.

Applies to