dotConnect for MongoDB Documentation
Devart.Data.MongoDB Namespace / MongoDBDataReader Class / GetDocument Method

On this page
    GetDocument Method
    On this page
    Returns the current document as a MongoDBDocument when the command is executed with ReaderType=Document; otherwise returns a null reference (Nothing in Visual Basic). In the SQL engine mode throws System.NotSupportedException.
    Syntax
    'Declaration
     
    Public Function GetDocument() As MongoDBDocument
    public MongoDBDocument GetDocument()
    See Also