[]
Represents information about a related file.
public class FileSpecification.RelatedFile : IOwnedObject
Initializes a new instance of the FileSpecification.RelatedFile class.
public RelatedFile(string fileName, EmbeddedFileStream embeddedFileStream)
fileName
stringThe name of the related file.
embeddedFileStream
EmbeddedFileStreamThe file content.
Gets a EmbeddedFileStream holding the file content.
public EmbeddedFileStream EmbeddedFileStream { get; }
Gets the FileSpecification.FileInfo object owning this object.
public FileSpecification.FileInfo FileInfo { get; }
Gets the file name of the related file.
public string FileName { get; }
Gets the FileSpecification object owning this object.
public FileSpecification FileSpecification { get; }
Gets a System.IO.Stream containing the content of this FileSpecification.RelatedFile, or null if the file specification is empty.
Important: this System.IO.Stream must be disposed after use.
public Stream GetStream()
A System.IO.Stream with the content of this FileSpecification.RelatedFile, or null if it is empty. If not null, the stream must be disposed after use!