Gets a document by it's given id.
Namespace: CouchbaseAssembly: Couchbase.NetClient (in Couchbase.NetClient.dll) Version: 2.0.1.0 (2.0.1.0)
Syntax public IDocumentResult<T> GetDocument<T>(
string id
)
public IDocumentResult<T> GetDocument<T>(
string id
)
Public Function GetDocument(Of T) (
id As String
) As IDocumentResult(Of T)
Public Function GetDocument(Of T) (
id As String
) As IDocumentResult(Of T)
public:
generic<typename T>
virtual IDocumentResult<T>^ GetDocument(
String^ id
) sealed
public:
generic<typename T>
virtual IDocumentResult<T>^ GetDocument(
String^ id
) sealed
abstract GetDocument :
id : string -> IDocumentResult<'T>
override GetDocument :
id : string -> IDocumentResult<'T>
abstract GetDocument :
id : string -> IDocumentResult<'T>
override 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
IResult T object containing the document if it's found and any other operation specific info.
Implements
IBucket GetDocument T (String)See Also