Class TempFileInfo
- Namespace
- CMS.DataEngine
- Assembly
- CMS.DataEngine.dll
TempFileInfo data container class.
public class TempFileInfo : AbstractInfo<TempFileInfo, ITempFileInfoProvider>, IExtensible, IInfo, IAdvancedDataContainer, ICMSObject, IHierarchicalDataContainer, IDataContainer, ISimpleDataContainer, IVirtualHierarchicalObject, IHierarchicalObject, INameIndexable, IMacroObject, IInfoWithId
- Inheritance
-
objectTempFileInfo
- Implements
- Inherited Members
- Extension Methods
Constructors
TempFileInfo()
Constructor - Creates an empty TempFileInfo object.
public TempFileInfo()
TempFileInfo(DataRow)
Constructor - Creates a new TempFileInfo object from the given DataRow.
public TempFileInfo(DataRow dr)
Parameters
dr
DataRow
Fields
OBJECT_TYPE
Object type
public const string OBJECT_TYPE = "temp.file"
Field Value
- string
TYPEINFO
Type information.
public static ObjectTypeInfo TYPEINFO
Field Value
Properties
FileBinary
Temporary file binary.
public virtual byte[] FileBinary { get; set; }
Property Value
- byte[]
FileDescription
Temporary file description.
public virtual string FileDescription { get; set; }
Property Value
- string
FileDirectory
Folder within temporary files folder.
public virtual string FileDirectory { get; set; }
Property Value
- string
FileExtension
Temporary file extension.
public virtual string FileExtension { get; set; }
Property Value
- string
FileGUID
Temporary file unique identifier.
public virtual Guid FileGUID { get; set; }
Property Value
- Guid
FileID
Temporary file ID.
public virtual int FileID { get; set; }
Property Value
- int
FileImageHeight
Temporary file height (makes sense for images only).
public virtual int FileImageHeight { get; set; }
Property Value
- int
FileImageWidth
Temporary file width (makes sense for images only).
public virtual int FileImageWidth { get; set; }
Property Value
- int
FileLastModified
Date and time when the temporary file was last modified.
public virtual DateTime FileLastModified { get; set; }
Property Value
- DateTime
FileMimeType
Temporary file mime type.
public virtual string FileMimeType { get; set; }
Property Value
- string
FileName
Name of the original file.
public virtual string FileName { get; set; }
Property Value
- string
FileNumber
Name of the temporary file.
public virtual int FileNumber { get; set; }
Property Value
- int
FileParentGUID
Temporary file scope unique identifier (temporary files are numbered uniquely within this scope).
public virtual Guid FileParentGUID { get; set; }
Property Value
- Guid
FileSiteName
Temporary file site name.
public virtual string FileSiteName { get; set; }
Property Value
- string
FileSize
Temporary files size.
public virtual long FileSize { get; set; }
Property Value
- long
FileTitle
Temporary file title.
public virtual string FileTitle { get; set; }
Property Value
- string
Methods
DeleteObject()
Deletes the object using appropriate provider.
protected override void DeleteObject()
EnsureBinaryData(bool)
Ensures the binary data - loads the binary data from file if available.
protected override byte[] EnsureBinaryData(bool forceLoadFromDB)
Parameters
forceLoadFromDB
boolIf true, the data are loaded even from DB
Returns
- byte[]
SetObject()
Updates the object using appropriate provider.
protected override void SetObject()