Attachment class
Revision as of 07:42, 2 November 2017 by Nguyenduyan (talk | contribs)
Attachment
Represents an attachment object.
Constructors
- (int resourceId "ResourceId of existing attachment.") - Fetch existing attachment.
- (string name "Resource name. If set to empty, the name is taken from the downloaded or copied file.", int parentResourceId "Parent resource.") - Create new attachment.
Methods
- Array of objects GetChildAttachments(int parentResourceId "Parent resource.") - Get all of the attachments associated with the resource.
- Empty SaveFromDownload(WebResponse response "Response from HttpRequest") - Download from an HttpRequest's response.
- Empty SaveFromFileCopy(string filename "Name of the file", bool isTemp "Is the file temporary") - Copy from an already stored file using Catglobe.File.
- string ToString() - The string representation of the object.
Properties
- int CreatedByUserResourceId { get; } - Get CreatedByUserResourceId
- DateTime CreatedDate { get; } - Get CreatedDate
- int FileSize { get; } - The size of the file on disk
- string InlineImageSrc { get; } - The uri to use in mails when inlining images
- int ModifiedByUserResourceId { get; } - Get ModifiedByUserResourceId
- DateTime ModifiedDate { get; } - Get ModifiedDate
- string Name { get; set; } - Resource name. If set to empty, the name is taken from the downloaded or copied file.
- string ObjectTypeName { get; } - The name of the type of object.
- string PublicUrl { get; } - Url to use to download for anyone
- int ResourceId { get; } - The Id of the Attachment
- TypeInformation TypeInformation { get; } - Get information about this class.