Interface IDocumentFragment
Inherited Members
Namespace: Couchbase.Core.IO.Operations.SubDocument
Assembly: Couchbase.NetClient.dll
Syntax
[Obsolete("This interface is not required and will be removed in a future release.")]
public interface IDocumentFragment : IOperationResult, IResult
Methods
| Edit this page View SourceContent(int)
The value if it exists for a specific index.
Declaration
object Content(int index)
Parameters
Type | Name | Description |
---|---|---|
int | index | The ordinal of the operation to retrieve the value from. |
Returns
Remarks
If no value exists, the default value for the Type will be returned.
Content(string)
The value if it exists for a specific path.
Declaration
object Content(string path)
Parameters
Type | Name | Description |
---|---|---|
string | path | The path of the operation to retrieve the value from. |
Returns
Remarks
If no value exists, the default value (null) for the object will be returned.
Content<TContent>(int)
The value if it exists for a specific index.
Declaration
TContent Content<TContent>(int index)
Parameters
Type | Name | Description |
---|---|---|
int | index | The ordinal of the operation to retrieve the value from. |
Returns
Type | Description |
---|---|
TContent | An object of type Type representing the value of the operation. |
Type Parameters
Name | Description |
---|---|
TContent | The Type to cast the value to. |
Remarks
If no value exists, the default value for the Type will be returned.
Content<TContent>(string)
The value if it exists for a specific path.
Declaration
TContent Content<TContent>(string path)
Parameters
Type | Name | Description |
---|---|---|
string | path | The path of the operation to retrieve the value from. |
Returns
Type | Description |
---|---|
TContent | An object of type Type representing the value of the operation. |
Type Parameters
Name | Description |
---|---|
TContent | The Type to cast the value to. |
Remarks
If no value exists, the default value for the Type will be returned.
Count()
The count of the sub-document operations chained togather.
Declaration
int Count()
Returns
| Edit this page View SourceExists(string)
Checks whether the given path is part of this result set, eg. an operation targeted it, and the operation executed successfully.
Declaration
bool Exists(string path)
Parameters
Type | Name | Description |
---|---|---|
string | path | The path for the sub-document operation. |
Returns
Type | Description |
---|---|
bool |
|
OpStatus(int)
Gets the Response
Declaration
ResponseStatus OpStatus(int index)
Parameters
Type | Name | Description |
---|---|---|
int | index | The ordinal of the operation. |
Returns
Type | Description |
---|---|
Response |
The Response |
OpStatus(string)
Gets the Response
Declaration
ResponseStatus OpStatus(string path)
Parameters
Type | Name | Description |
---|---|---|
string | path | The path of the operation. |
Returns
Type | Description |
---|---|
Response |
The Response |