PSObjectPropertyDescriptor
Class
Definition
Serves as the property information generated by the GetProperties method of PSObjectTypeDescriptor.
public class PSObjectPropertyDescriptor : System.ComponentModel.PropertyDescriptor
- Inheritance
-
PSObjectPropertyDescriptor
Remarks
It is permitted to subclass SettingValueExceptionEventArgs but there is no established scenario for doing this, nor has it been tested.
Properties
| Attributes |
Gets the collection of attributes for this member. |
| ComponentType |
Gets the type of the component this property is bound to. |
| IsReadOnly |
Gets a value indicating whether this property is read-only. |
| PropertyType |
Gets the type of the property value. |
Methods
| CanResetValue(Object) |
Returns false to indicate that ResetValue has no effect. |
| GetValue(Object) |
Gets the current value of the property on a component. |
| ResetValue(Object) |
This method has no effect for PSObjectPropertyDescriptor. CanResetValue returns false. |
| SetValue(Object, Object) |
Sets the value of the component to a different value. |
| ShouldSerializeValue(Object) |
Returns true to indicate that the value of this property needs to be persisted. |