# SetContent Method

## Overloads

| [SetContent(String, Boolean)](https://help.qlik.com/en-US/sense-developer/May2025/Subsystems/NetSDKAPIref/Content/Qlik.Engine.IVariable.SetContent.htm#Qlik_Engine_IVariable_SetContent_System_String_System_Boolean_) |  | Sets a value to a variable. |
| --- | --- | --- |

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

## SetContent(String, Boolean)

Sets a value to a variable.

### Declaration

```

          [Obsolete("Use _GenericVariable::SetProperties_ method instead")]
bool SetContent([QixName("qContent")] string content, [QixName("qUpdateMRU")] bool updateMRU)
    
  
```

### Parameters

| Type | Name | Description |
| --- | --- | --- |
| System.String | content | Value of the variable. |
| System.Boolean | updateMRU | If set to true, the value is added to the Most Recently Used (MRU) list. |

### Returns

| Type | Description |
| --- | --- |
| System.Boolean |  |

### Remarks

The operation is successful if qReturn is set to true.