SocketTools .NET Edition

HttpClient.TaskId Property

Get the task identifier for the last background file transfer.

[Visual Basic]
Public ReadOnly Property TaskId As Integer
[C#]
public int TaskId {get;}

Property Value

An integer value the uniquely identifies the current background task.

Remarks

The TaskId property returns the task ID associated with the current background task. This identifies the last background file transfer that was initiated with a call to the AsyncGetFile or AsyncPutFile methods. This property value will change with each subsequent background transfer that is performed. If this property returns a value of zero, that indicates that no background tasks have been started for this instance of the class.

To enumerate the active background tasks, use the TaskCount property and the TaskList array.

See Also