Sets the boolean property value to an object in the Scene.
If the property is not a boolean, the method will throw an InvalidOperationException.
InvalidOperationException