Class FileInfo
FileInfo.
[DataContract]
public class FileInfo
- Inheritance
-
FileInfo
- Inherited Members
Constructors
FileInfo()
Initializes a new instance of the FileInfo class.
[JsonConstructor]
protected FileInfo()
FileInfo(string, int, string, string)
Initializes a new instance of the FileInfo class.
public FileInfo(string fileName = null, int fileSize = 0, string contentType = null, string extension = null)
Parameters
fileName
stringfileName.
fileSize
intfileSize.
contentType
stringcontentType.
extension
stringextension.
Properties
ContentType
Gets or sets the content type.
[DataMember(Name = "contentType", EmitDefaultValue = true)]
public string ContentType { get; set; }
Property Value
Extension
Gets or sets the extension.
[DataMember(Name = "extension", EmitDefaultValue = true)]
public string Extension { get; set; }
Property Value
FileName
Gets or sets the file name.
[DataMember(Name = "fileName", EmitDefaultValue = true)]
public string FileName { get; set; }
Property Value
FileSize
Gets or sets the file size.
[DataMember(Name = "fileSize", EmitDefaultValue = false)]
public int FileSize { get; set; }