Nevron Open Vision Documentation
Nevron.Nov.Diagram.Formats Namespace / NVisioService Class / TryGetFileFormat<TEnum> Method
An Aspose load or save file enumeration.
A file extension without the dot, for example "vsdx", "vdx", "vdx", "vss", etc.
The Aspose.Diagram file format representing files with the given extension.


In This Topic
    TryGetFileFormat<TEnum> Method
    In This Topic
    Tries to get an Aspose load or save file format from the given file extension.
    Syntax
    'Declaration
     
    
    Protected Shared Function TryGetFileFormat(Of TEnum As {New, Struct})( _
       ByVal extension As System.String, _
       ByRef fileFormat As TEnum _
    ) As System.Boolean
    'Usage
     
    
    Dim extension As System.String
    Dim fileFormat As TEnum
    Dim value As System.Boolean
     
    value = NVisioService.TryGetFileFormat(Of TEnum)(extension, fileFormat)
    protected static System.bool TryGetFileFormat<TEnum>( 
       System.string extension,
       out TEnum fileFormat
    )
    where TEnum: new(), struct

    Parameters

    extension
    A file extension without the dot, for example "vsdx", "vdx", "vdx", "vss", etc.
    fileFormat
    The Aspose.Diagram file format representing files with the given extension.

    Type Parameters

    TEnum
    An Aspose load or save file enumeration.
    Requirements

    Target Platforms: Windows 11, Windows 10, Windows 7, 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)

    See Also