public void CopyAttachment(string sourceAttachedFileName, string targetAttachedFileName, TIS_ATTACHMENT_EXISTS_ACTION enAttachmentExistsAction) { // Copy attachment StaticStorageServices.Copy( m_SourceStorage, m_SourceStorage, sourceAttachedFileName, targetAttachedFileName); }
public ReadOnlyCollection <string> QueryAttachedTypes() { List <string> attachmentTypes = new List <string>(); attachmentTypes.AddRange(StaticStorageServices.GetUsedExtenstions(m_SourceStorage, GetSourcePath(), true)); ReadOnlyCollection <string> result = new ReadOnlyCollection <string>(attachmentTypes); return(result); }
public void RemoveAttachmentsOfType(string attachmentTypes) { // Delete BLOBs (including sub-dirs) StaticStorageServices.DeleteStorage(m_SourceStorage, GetSourcePath(), "*." + attachmentTypes, true); }
public void RemoveAllAttachments() { // Delete Storages (including sub-dirs) StaticStorageServices.DeleteStorage(m_SourceStorage, GetSourcePath(), "*.*", true); }