Skip to main content Skip to complementary content

GetVariableAsync Method

Overloads

GetVariableAsync(String)

Returns a handle to a variable.

GetVariableAsync(AsyncHandle, String)

Returns a handle to a variable.

GetVariableAsync<T>(AsyncHandle, Func<Response, T>, String)

Returns a handle to a variable.

GetVariableAsync(String)

Returns a handle to a variable.

Declaration

      [Obsolete("Use _Doc::GetVariableById_ method or _Doc::GetVariableByName_ method instead")]
public Task<Variable> GetVariableAsync([QixName("qName")] string name)
    

Parameters

Type Name Description
System.String name

Name of the variable.

Returns

Type Description
System.Threading.Tasks.Task<Variable>

Implements

GetVariableAsync(AsyncHandle, String)

Returns a handle to a variable.

Declaration

      [Obsolete("Use _Doc::GetVariableById_ method or _Doc::GetVariableByName_ method instead")]
public Task<Variable> GetVariableAsync(AsyncHandle asyncHandle, [QixName("qName")] string name)
    

Parameters

Type Name Description
AsyncHandle asyncHandle

Handle to asynchronous method request

System.String name

Name of the variable.

Returns

Type Description
System.Threading.Tasks.Task<Variable>

Implements

GetVariableAsync<T>(AsyncHandle, Func<Response, T>, String)

Returns a handle to a variable.

Declaration

      [Obsolete("Use _Doc::GetVariableById_ method or _Doc::GetVariableByName_ method instead")]
public Task<T> GetVariableAsync<T>(AsyncHandle asyncHandle, Func<Response, T> onResult, [QixName("qName")] string name)
    

Parameters

Type Name Description
AsyncHandle asyncHandle

Handle to asynchronous method request

System.Func<Response, T> onResult

Continuation function

System.String name

Name of the variable.

Returns

Type Description
System.Threading.Tasks.Task<T>

Type Parameters

Name Description
T

Implements

Did this page help you?

If you find any issues with this page or its content – a typo, a missing step, or a technical error – let us know how we can improve!