ElementTypeDescriptor.IsPropertyDescriptorReadOnly Method
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)
Syntax
'Declaration
Protected Friend Overridable Function IsPropertyDescriptorReadOnly ( _
propertyDescriptor As ElementPropertyDescriptor _
) As Boolean
protected internal virtual bool IsPropertyDescriptorReadOnly(
ElementPropertyDescriptor propertyDescriptor
)
protected public:
virtual bool IsPropertyDescriptorReadOnly(
ElementPropertyDescriptor^ propertyDescriptor
)
abstract IsPropertyDescriptorReadOnly :
propertyDescriptor:ElementPropertyDescriptor -> bool
override IsPropertyDescriptorReadOnly :
propertyDescriptor:ElementPropertyDescriptor -> bool
function IsPropertyDescriptorReadOnly(
propertyDescriptor : ElementPropertyDescriptor
) : boolean
Parameters
propertyDescriptor
Type: Microsoft.VisualStudio.Modeling.Design.ElementPropertyDescriptorThe 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.
Exceptions
Exception | Condition |
---|---|
ArgumentNullException | propertyDescriptor is nulla null reference (Nothing in Visual Basic). |
Remarks
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.
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.