PSObjectPropertyDescriptor.GetValue
Method
Definition
Gets the current value of the property on a component.
public override object GetValue (object component);
- component
- Object
The component with the property for which to retrieve the value.
The value of a property for a given component.
If the property has not been found in the component or an exception has been thrown when getting the value of the property. This Exception will only be thrown if there is no event handler for the GettingValueException event of the PSObjectTypeDescriptor that created this PSObjectPropertyDescriptor. If there is an event handler, it can prevent this exception from being thrown, by changing the ShouldThrow property of GettingValueExceptionEventArgs from its default value of true to false.
If component is null.
if component is not
an PSObject or an PSObjectTypeDescriptor.