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
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.