Gets a document by it's given id.
Namespace: Couchbase.CoreAssembly: Couchbase.NetClient (in Couchbase.NetClient.dll) Version: 2.0.0.0 (2.0.0.0)
SyntaxIDocumentResult<T> GetDocument<T>(
string id
)
IDocumentResult<T> GetDocument<T>(
string id
)
Function GetDocument(Of T) (
id As String
) As IDocumentResult(Of T)
Function GetDocument(Of T) (
id As String
) As IDocumentResult(Of T)
generic<typename T>
IDocumentResult<T>^ GetDocument(
String^ id
)
generic<typename T>
IDocumentResult<T>^ GetDocument(
String^ id
)
abstract GetDocument :
id : string -> IDocumentResult<'T>
abstract GetDocument :
id : string -> IDocumentResult<'T>
Parameters
- id
- Type: System.String
The documents primary key.
Type Parameters- T
- The type T to convert the value to.
Return Value
Type:
IDocumentResult<T>An
IDocumentResult<T> object containing the document if it's found and any other operation specific info.
See Also