PSObjectPropertyDescriptor.SetValue Method (Object, Object)

 

Updated: April 27, 2016

Applies To: Windows PowerShell

Sets the value of the property.

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

public override void SetValue(
	object component,
	object value
)

Parameters

component
Type: System.Object

The adapted object or PSObject object whose property value is to be set.

value
Type: System.Object

The new value.

Exception Condition
ExtendedTypeSystemException

The property could not 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 is not a PSObject or PSObjectTypeDescriptor object.

The ExtendedTypeSystemException exception is thrown under the following conditions:

Return to top

Community Additions

ADD
Show: