Export (0) Print
Expand All

PSObjectPropertyDescriptor.SetValue Method

Sets the value of the property.

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

Dim instance As PSObjectPropertyDescriptor
Dim component As Object
Dim value As Object

instance.SetValue(component, value)

public override void SetValue (
	Object component,
	Object value
public void SetValue (
	Object component, 
	Object value
public override function SetValue (
	component : Object, 
	value : Object



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


The new value.

Exception typeCondition

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


The component parameter is null.


The component parameter is not a PSObject or PSObjectTypeDescriptor object.

The ExtendedTypeSystemException exception is thrown under the following conditions:

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.


Target Platforms

© 2015 Microsoft