/// <summary> /// Called after a non null return from GetMember to set the property value /// </summary> /// <param name="property">the non empty return from GetMember</param> /// <param name="setValue">the value to set property with</param> /// <param name="arguments">the arguments to use</param> protected override void ParameterizedPropertySet(PSParameterizedProperty property, object setValue, object[] arguments) { ComProperty prop = (ComProperty)property.adapterData; prop.SetValue(property.baseObject, setValue, arguments); }
/// <summary> /// Sets the value of a property coming from a previous call to DoGetProperty /// </summary> /// <param name="property">PSProperty coming from a previous call to DoGetProperty</param> /// <param name="setValue">value to set the property with</param> /// <param name="convertIfPossible">instructs the adapter to convert before setting, if the adapter supports conversion</param> protected override void PropertySet(PSProperty property, object setValue, bool convertIfPossible) { ComProperty prop = (ComProperty)property.adapterData; prop.SetValue(property.baseObject, setValue); }