ElementTypeDescriptor::IsPropertyDescriptorReadOnly Method (ElementPropertyDescriptor^)

 

Returns a value that indicates whether the described property is read-only.

Namespace:   Microsoft.VisualStudio.Modeling.Design
Assembly:  Microsoft.VisualStudio.Modeling.Sdk.12.0 (in Microsoft.VisualStudio.Modeling.Sdk.12.0.dll)

public protected:
virtual bool IsPropertyDescriptorReadOnly(
	ElementPropertyDescriptor^ propertyDescriptor
)

Parameters

propertyDescriptor
Type: Microsoft.VisualStudio.Modeling.Design::ElementPropertyDescriptor^

The descriptor for the domain property for which to return the value.

Return Value

Type: System::Boolean

A value that indicates whether the property is read-only.

Exception Condition
ArgumentNullException

propertyDescriptor is null.

When an owner is specified when a domain property descriptor is created, then the IsReadOnly property of the property descriptor calls the IsPropertyDescriptorReadOnly method of the owner, and provides itself as the propertyDescriptor parameter. In a derived class, this can provide a central place for setting whether an element property is read-only.

Return to top
Show: