# ForceContent Method

## Overloads

| [ForceContent(String, Double)](https://help.qlik.com/en-US/sense-developer/May2025/Subsystems/NetSDKAPIref/Content/Qlik.Engine.IVariable.ForceContent.htm#Qlik_Engine_IVariable_ForceContent_System_String_System_Double_) |  | Sets the value of a dual variable overriding any input constraints. |
| --- | --- | --- |

[](https://help.qlik.com/en-US/sense-developer/Subsystems/NetSDKAPIref/Content/Qlik.Engine.IVariable.ForceContent.htm) [](https://help.qlik.com/en-US/sense-developer/Subsystems/NetSDKAPIref/Content/Qlik.Engine.IVariable.ForceContent.htm)

## ForceContent(String, Double)

Sets the value of a dual variable overriding any input constraints.

### Declaration

```

          [Obsolete("Use _GenericVariable::SetProperties_ method instead")]
void ForceContent([QixName("qs")] string s, [QixName("qd")] double d)
    
  
```

### Parameters

| Type | Name | Description |
| --- | --- | --- |
| System.String | s | String representation of a dual value.<br>Set this parameter to "", if the string representation is to be Null. |
| System.Double | d | Numeric representation of a dual value. |