Class DynamicResponse
Inherited Members
Namespace: OpenSearch.Net
Assembly: OpenSearch.Net.dll
Syntax
public class DynamicResponse : OpenSearchResponse<dynamic>, IApiCallDetails, IOpenSearchResponse
Constructors
| Edit this page View SourceDynamicResponse()
Declaration
public DynamicResponse()
DynamicResponse(DynamicDictionary)
Declaration
public DynamicResponse(DynamicDictionary dictionary)
Parameters
Type | Name | Description |
---|---|---|
DynamicDictionary | dictionary |
Properties
| Edit this page View SourceDictionary
Declaration
public DynamicDictionary Dictionary { get; }
Property Value
Type | Description |
---|---|
DynamicDictionary |
Methods
| Edit this page View SourceGet<T>(string)
Traverses data using path notation.
e.g some.deep.nested.json.path
A special lookup is available for ANY key using _arbitrary_key_
e.g some.deep._arbitrary_key_.json.path
which will traverse into the first key
Declaration
public T Get<T>(string path)
Parameters
Type | Name | Description |
---|---|---|
string | path | path into the stored object, keys are separated with a dot and the last key is returned as T |
Returns
Type | Description |
---|---|
T | T or default |
Type Parameters
Name | Description |
---|---|
T |