SetContentAsync Method
Overloads
| SetContentAsync(String, Boolean) |
Sets a value to a variable. |
|
| SetContentAsync(AsyncHandle, String, Boolean) |
Sets a value to a variable. |
|
| SetContentAsync<T>(AsyncHandle, Func<Response, T>, String, Boolean) |
Sets a value to a variable. |
SetContentAsync(String, Boolean)
Sets a value to a variable.
Declaration
[Obsolete("Use _GenericVariable::SetProperties_ method instead")]
public Task<bool> SetContentAsync([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.Threading.Tasks.Task<System.Boolean> |
Implements
Remarks
The operation is successful if qReturn is set to true.
SetContentAsync(AsyncHandle, String, Boolean)
Sets a value to a variable.
Declaration
[Obsolete("Use _GenericVariable::SetProperties_ method instead")]
public Task<bool> SetContentAsync(AsyncHandle asyncHandle, [QixName("qContent")] string content, [QixName("qUpdateMRU")] bool updateMRU)
Parameters
| Type | Name | Description |
|---|---|---|
| AsyncHandle | asyncHandle |
Handle to asynchronous method request |
| 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.Threading.Tasks.Task<System.Boolean> |
Implements
Remarks
The operation is successful if qReturn is set to true.
SetContentAsync<T>(AsyncHandle, Func<Response, T>, String, Boolean)
Sets a value to a variable.
Declaration
[Obsolete("Use _GenericVariable::SetProperties_ method instead")]
public Task<T> SetContentAsync<T>(AsyncHandle asyncHandle, Func<Response, T> onResult, [QixName("qContent")] string content, [QixName("qUpdateMRU")] bool updateMRU)
Parameters
| Type | Name | Description |
|---|---|---|
| AsyncHandle | asyncHandle |
Handle to asynchronous method request |
| System.Func<Response, T> | onResult |
Continuation function |
| 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.Threading.Tasks.Task<T> |
Type Parameters
| Name | Description |
|---|---|
| T |
Implements
Remarks
The operation is successful if qReturn is set to true.