IFileContent Interface |
Namespace: SOWIData.Helper.Interface
The IFileContent type exposes the following members.
/// <summary> /// SOWI Data file handling class /// </summary> /// <seealso cref="SOWIData.Helper.Interface.IFileContent"/> public class SOWIDataFileContent : SOWIData.Helper.Interface.IFileContent { #region --- constructors --- /// <summary> /// Constructor without parameter /// </summary> public SOWIDataFileContent() { } /// <summary> /// Constructor with file parameter /// </summary> /// <param name="pFilename">file name</param> /// <param name="pContent">file content</param> /// <param name="pType">e.g. MIME content type</param> public SOWIDataFileContent(string pFilename, byte[] pContent, string pType = "") : base() { this.Name = System.IO.Path.GetFileName(pFilename); this.Content = pContent; this.Type = pType; } #endregion #region --- fields --- /// <summary> /// File name /// </summary> public string Name { get; set; } /// <summary> /// File conent /// </summary> public byte[] Content { get; set; } /// <summary> /// File type /// </summary> public string Type { get; set; } #endregion }