SetValue Method
Collapse the table of content
Expand the table of content

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:
virtual void SetValue(
	Object^ component,
	Object^ value
) override

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:
© 2016 Microsoft