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)

'Usage
Dim instance As PSObjectPropertyDescriptor
Dim component As Object
Dim value As Object

instance.SetValue(component, value)

public:
virtual void SetValue (
	Object^ component, 
	Object^ value
) override
public void SetValue (
	Object component, 
	Object value
)
public override function SetValue (
	component : Object, 
	value : Object
)

Parameters

component

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

value

The new value.

Exception typeCondition
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:


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

Windows Developer Preview, Windows Server Developer Preview

Send comments about this topic to Microsoft.
Show:
© 2014 Microsoft