Skip to the content.

FileMetaData constructor (1 of 6)

Create a new FileData object

public FileMetaData()

See Also


FileMetaData constructor (2 of 6)

Generate file metadata from bytes by writing it on to the FileSystem

public FileMetaData(IFileServiceConfig fileServiceConfig, byte[] bytes, string fileType, 
    bool? throwOnException = true)
parameter description
fileServiceConfig >Associated File Handler’s Configuration
bytes The bytes of the file
fileType The Extension of the file (without ‘.’). eg:zip
throwOnException Indicates whether an Exception should be thrown when the file is not found. Default: true

See Also


FileMetaData constructor (3 of 6)

Generate file metadata from bytes by writing it on to the FileSystem

public FileMetaData(IFileServiceConfig fileServiceConfig, Stream stream, string fileType, 
    bool? throwOnException = true)
parameter description
fileServiceConfig >Associated File Handler’s Configuration
stream The stream of the file
fileType The Extension of the file (without ‘.’). eg:zip
throwOnException Indicates whether an Exception should be thrown when the file is not found. Default: true

See Also


FileMetaData constructor (4 of 6)

Generate file meta data from a file on the filesystem

public FileMetaData(IFileServiceConfig fileServiceConfig, string fileName, string fileType, 
    bool? throwOnNotFound = true)
parameter description
fileName The Name of the file on the FileSystem in the Root Directory (Including extension)
fileType The type of the File
fileServiceConfig Associated File Handler’s Configuration
throwOnNotFound Indicates whether an Exception should be thrown when the file is not found. Default: true

See Also


FileMetaData constructor (5 of 6)

Generate file metadata from bytes by writing it on to the FileSystem

public FileMetaData(IFileServiceConfig fileServiceConfig, byte[] bytes, string fileName, 
    string fileType, bool? throwOnException = true)
parameter description
fileServiceConfig >Associated File Handler’s Configuration
bytes The bytes of the file
fileName The Name of the file on the FileSystem in the Root Directory (Including extension)
fileType The Extension of the file (without ‘.’). eg:zip
throwOnException Indicates whether an Exception should be thrown when the file is not found. Default: true

See Also


FileMetaData constructor (6 of 6)

Generate file metadata from bytes by writing it on to the FileSystem

public FileMetaData(IFileServiceConfig fileServiceConfig, Stream stream, string fileName, 
    string fileType, bool? throwOnException = true)
parameter description
fileServiceConfig >Associated File Handler’s Configuration
stream The stream of the file
fileName The Name of the file on the FileSystem in the Root Directory (Including extension)
fileType The Extension of the file (without ‘.’). eg:zip
throwOnException Indicates whether an Exception should be thrown when the file is not found. Default: true

See Also