Interface ILazyDocument
A lazily deserialized document
Namespace: OpenSearch.Client
Assembly: OpenSearch.Client.dll
Syntax
public interface ILazyDocument
Methods
| Edit this page View SourceAs(Type)
Creates an instance of objectType from this
ILazyDocument instance
Declaration
object As(Type objectType)
Parameters
| Type | Name | Description |
|---|---|---|
| Type | objectType | The type |
Returns
| Type | Description |
|---|---|
| object |
AsAsync(Type, CancellationToken)
Creates an instance of objectType from this
ILazyDocument instance
Declaration
Task<object> AsAsync(Type objectType, CancellationToken ct = default)
Parameters
| Type | Name | Description |
|---|---|---|
| Type | objectType | The type |
| CancellationToken | ct |
Returns
| Type | Description |
|---|---|
| Task<object> |
AsAsync<T>(CancellationToken)
Creates an instance of T from this
ILazyDocument instance
Declaration
Task<T> AsAsync<T>(CancellationToken ct = default)
Parameters
| Type | Name | Description |
|---|---|---|
| CancellationToken | ct |
Returns
| Type | Description |
|---|---|
| Task<T> |
Type Parameters
| Name | Description |
|---|---|
| T | The type |
As<T>()
Creates an instance of T from this
ILazyDocument instance
Declaration
T As<T>()
Returns
| Type | Description |
|---|---|
| T |
Type Parameters
| Name | Description |
|---|---|
| T | The type |