PSObjectPropertyDescriptor.GetValue Method (Object)

 

Updated: April 27, 2016

Applies To: Windows PowerShell

Gets the current value of the property.

Namespace:   System.Management.Automation
Assembly:  System.Management.Automation (in System.Management.Automation.dll)

Public Overrides Function GetValue (
	component As Object
) As Object

Parameters

component
Type: System.Object

The adapted object or PSObject object whose property value is retrieved.

Return Value

Type: System.Object

The value of the adapted object or PSObject object property.

Exception Condition
ExtendedTypeSystemException

The property cannot be found or the component threw an exception. For more information, see the Remarks section.

PSArgumentNullException

The component parameter is null.

PSArgumentException

The component parameter not a PSObject or PSObjectTypeDescriptor object.

The ExtendedTypeSystemException exception is thrown under the following conditions:

Return to top

Community Additions

ADD
Show: