Click or drag to resize
DigitalRuneTaskT Structure
Represents an asynchronous operation that can return a value.

Namespace: DigitalRune.Threading
Assembly: DigitalRune (in DigitalRune.dll) Version: 1.20.0.0 (1.20.1.14552)
Syntax
public struct Task<T> : IEquatable<Task<T>>

Type Parameters

T
The type of result produced by the asynchronous operation.

The TaskT type exposes the following members.

Methods
  NameDescription
Public methodEquals(Object)
Determines whether the specified Object, is equal to this instance.
(Overrides ValueTypeEquals(Object).)
Public methodEquals(TaskT)
Indicates whether the current object is equal to another object of the same type.
Public methodGetHashCode
Returns a hash code for this instance.
(Overrides ValueTypeGetHashCode.)
Public methodGetResult
Gets the result. (Blocks the calling thread until the asynchronous operation has completed execution. This can only be called once!)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodToString
Returns the fully qualified type name of this instance.
(Inherited from ValueType.)
Top
Operators
  NameDescription
Public operatorStatic memberEquality
Compares two TaskT to determine whether they are the same.
Public operatorStatic memberInequality
Compares two TaskT to determine whether they are different.
Top
Properties
  NameDescription
Public propertyExceptions
Gets an array containing any exceptions thrown by this task.
Public propertyIsComplete
Gets a value which indicates if this task has completed.
Top
Remarks
See Also