Skip to the content.

FileService.Create method (1 of 4)

Create a new File and Get the file from the FileSystem synchronously

public IFileMetaData Create(string fileType, byte[] bytes, bool throwOnException = true)
parameter description
fileType The type of the file
bytes The contents of the file
throwOnException Indicates whether an Exception should be thrown upon errors. Default:true

Return Value

IFileMetaData

See Also


FileService.Create method (2 of 4)

Create a new File and Get the file from the FileSystem synchronously

public IFileMetaData Create(string fileType, Stream stream, bool throwOnException = true)
parameter description
fileType The type of the file
stream The contents of the file
throwOnException Indicates whether an Exception should be thrown upon errors. Default:true

Return Value

IFileMetaData

See Also


FileService.Create method (3 of 4)

Create a new File and Get the file from the FileSystem synchronously

public IFileMetaData Create(string fileName, string fileType, byte[] bytes, 
    bool throwOnException = true)
parameter description
fileName Name of the file
fileType The type of the file
bytes The contents of the file
throwOnException Indicates whether an Exception should be thrown upon errors. Default:true

Return Value

IFileMetaData

See Also


FileService.Create method (4 of 4)

Create a new File and Get the file from the FileSystem synchronously

public IFileMetaData Create(string fileName, string fileType, Stream stream, 
    bool throwOnException = true)
parameter description
fileName Name of the file
fileType The type of the file
stream The contents of the file
throwOnException Indicates whether an Exception should be thrown upon errors. Default:true

Return Value

IFileMetaData

See Also