ElementPropertyDescriptor.IsReadOnly Property
Gets a value that indicates whether the described property is read-only.
Namespace: Microsoft.VisualStudio.Modeling.Design
Assembly: Microsoft.VisualStudio.Modeling.Sdk (in Microsoft.VisualStudio.Modeling.Sdk.dll)
Syntax
'Declaration
Public Overrides ReadOnly Property IsReadOnly As Boolean
'Usage
Dim instance As ElementPropertyDescriptor
Dim value As Boolean
value = instance.IsReadOnly
public override bool IsReadOnly { get; }
public:
virtual property bool IsReadOnly {
bool get () override;
}
public override function get IsReadOnly () : boolean
Property Value
Type: System.Boolean
A value that indicates whether the described property is read-only.
Remarks
If the owner parameter was specified in the constructor for this property descriptor, then the IsPropertyDescriptorReadOnly method of the owner provides the value, where this descriptor is passed in the propertyDescriptor parameter.
By default, only calculated properties and properties to which the ReadOnlyAttribute attribute is applied are 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.
See Also
Reference
ElementPropertyDescriptor Class
ElementPropertyDescriptor Members
Microsoft.VisualStudio.Modeling.Design Namespace
Change History
Date |
History |
Reason |
---|---|---|
July 2008 |
Added topic. |
Content bug fix. |