Condividi tramite


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.10.0 (in Microsoft.VisualStudio.Modeling.Sdk.10.0.dll)

Syntax

'Dichiarazione
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

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

See Also

Reference

ElementTypeDescriptor Class

Microsoft.VisualStudio.Modeling.Design Namespace

ElementPropertyDescriptor