Class Resource
- Namespace
- CENTREL.XIA.Configuration.Types
- Assembly
- CENTREL.XIA.Configuration.Types.dll
Represents the metadata of a resource found within XIA Server, for example an external document, image or other file.
public class Resource : BaseConfigurationType
- Inheritance
-
Resource
- Inherited Members
Constructors
Resource()
Initializes a new instance of the CENTREL.XIA.Configuration.Types.Resource class.
public Resource()
Properties
Author
Gets or sets the author of the specific document - for example "Steven Jones".
public string Author { get; set; }
Property Value
FileName
Gets or sets the file name of this resource as seen on the file system - for example "networkdiagram.vsd".
public string FileName { get; set; }
Property Value
FileSize
Gets or sets the size of the resource file in bytes.
public long FileSize { get; set; }
Property Value
FileSizeString
Gets the size of the resource file in a human readable format.
public string FileSizeString { get; set; }
Property Value
ResourceData
Gets or sets the data of this specific resource in binary format.
public byte[] ResourceData { get; set; }
Property Value
- byte[]
ResourceType
Gets or sets the type of the resource - for example "OfficeDocument", "Office2003Document", "Image", "PDF" or "Other".
public ResourceFileType ResourceType { get; set; }
Property Value
ResourceTypeString
Gets the type of resource as a human readable string.
public string ResourceTypeString { get; set; }
Property Value
Subject
Gets or sets the subject of the document.
public string Subject { get; set; }
Property Value
Methods
Clone()
Creates a clone of this CENTREL.XIA.Configuration.Types.Resource.
public Resource Clone()
Returns
- Resource
A clone of this CENTREL.XIA.Configuration.Types.Resource.
FromXml(string)
Returns a CENTREL.XIA.Configuration.Types.Resource class from the specified XML.
public static Resource FromXml(string xml)
Parameters
xml
stringThe XML representation of the object.
Returns
- Resource
A CENTREL.XIA.Configuration.Types.Resource class.