Nevron Open Vision Documentation
Nevron.Nov.Dom Namespace / NDocumentFormatRegistry<TDocumentFormat> Class / GetFromFile Method
The file to analyze.
Specifies whether the file is going to be used for reading or for writing.


In This Topic
    GetFromFile Method
    In This Topic
    Gets the document format from the specified file. If the file format couldn't be recognized from the given file, the default file format of the document registry is returned.
    Syntax
    'Declaration
     
    
    Public Function GetFromFile( _
       ByVal file As NFile, _
       ByVal forReading As System.Boolean _
    ) As NPromise(Of TDocumentFormat)
    'Usage
     
    
    Dim instance As NDocumentFormatRegistry(Of TDocumentFormat)
    Dim file As NFile
    Dim forReading As System.Boolean
    Dim value As NPromise(Of TDocumentFormat)
     
    value = instance.GetFromFile(file, forReading)
    public NPromise<TDocumentFormat> GetFromFile( 
       NFile file,
       System.bool forReading
    )

    Parameters

    file
    The file to analyze.
    forReading
    Specifies whether the file is going to be used for reading or for writing.
    Requirements

    Target Platforms: Windows 10, Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2019, Windows Server 2016, Windows Server 2012 R2, Windows Server 2012, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

    See Also