ObjectContent<T>.ReadOrDefaultAsync Method

[This documentation is for preview only, and is subject to change in later releases. Blank topics are included as placeholders.]

Returns a Task instance to yield the object instance for this ObjectContent or the default value for the type if content is not available.

Namespace:  System.Net.Http
Assembly:  System.Net.Http.Formatting (in System.Net.Http.Formatting.dll)

Syntax

'Declaration
Public Function ReadOrDefaultAsync As Task
public Task ReadOrDefaultAsync()
public:
Task^ ReadOrDefaultAsync()
member ReadOrDefaultAsync : unit -> Task 
public function ReadOrDefaultAsync() : Task

Return Value

Type: System.Threading.Tasks.Task<TResult>
A Task that will yield the object instance.

.NET Framework Security

See Also

Reference

ObjectContent<T> Class

System.Net.Http Namespace