Redigera

Dela via


IDocumentDatabase.GetDocumentReader<TDocument>(TableOptions) Method

Definition

Gets a document reader for the specified table and document type.

public:
generic <typename TDocument>
 System::Cloud::DocumentDb::IDocumentReader<TDocument> ^ GetDocumentReader(System::Cloud::DocumentDb::TableOptions ^ options);
public System.Cloud.DocumentDb.IDocumentReader<TDocument> GetDocumentReader<TDocument>(System.Cloud.DocumentDb.TableOptions options);
abstract member GetDocumentReader : System.Cloud.DocumentDb.TableOptions -> System.Cloud.DocumentDb.IDocumentReader<'Document>
Public Function GetDocumentReader(Of TDocument) (options As TableOptions) As IDocumentReader(Of TDocument)

Type Parameters

TDocument

The document entity type to be used as a table schema. The results of the request are mapped to an instance of this type.

Parameters

options
TableOptions

The table options.

Returns

The document reader.

Exceptions

An error occurred on the client side, for example, on a bad request, permissions error, or client timeout.

Applies to