FileSpecification

FileSpecification class

Class representing embedded file.

public sealed class FileSpecification : IDisposable

Constructors

Name Description
FileSpecification() Create new empty file specification.
FileSpecification(string) Constructor for FileSpecification
FileSpecification(Stream, string) Constructor for file specification.
FileSpecification(string, Annotation) Constructor for FileSpecification.
FileSpecification(string, string) Constructor for FileSpecification.
FileSpecification(Stream, string, string) Constructor for FileSpecification.

Properties

Name Description
AFRelationship { get; set; } Associated file Relationship.
Contents { get; set; } Gets or sets contents file. This property returns data loaded in memory which may cause Out of memory exception for large data. To decrease memory usage please use StreamContents.
Description { get; set; } Gets or sets text associated with the file specification.
Encoding { get; set; } Gets or sets encoding format. Possible values: Zip - file is compressed with ZIP, None - file is not compressed.
EncryptedPayload { get; } Gets encrypted payload.
FileSystem { get; set; } Gets or sets name of the file system.
IncludeContents { get; set; } If true, contents of the file will be included in the file specification.
MIMEType { get; set; } Gets subtype of the embedded file
Name { get; set; } Gets or sets file specification name.
Params { get; set; } Gets file paramteres.
StreamContents { get; } Gets contents of file as stream. Contents is not loaded into memory which allows to decrease memory usage. But this stream does not support positioning and Length property. If you need this features please use Contents property instead.
UnicodeName { get; set; } Gets or sets file specification unicode name.

Methods

Name Description
Dispose() Dispose contents.
GetValue(string) Gets application-specific parameter.
SetValue(string, string) Sets application-specific parameter.

See Also