Class EmailFolder
- Namespace
- Dynamicweb.EmailMarketing
- Assembly
- Dynamicweb.EmailMarketing.dll
Represents email folder
[PermissionEntity("EmailFolder")]
public class EmailFolder : DbObject, IPermissionEntity, IPermissionEntityLookup
- Inheritance
-
EmailFolder
- Implements
- Inherited Members
- Extension Methods
Constructors
EmailFolder()
Initializes a new instance of the EmailFolder class.
public EmailFolder()
Properties
EmailsCount
public int EmailsCount { get; }
Property Value
HasChildFolders
public bool HasChildFolders { get; }
Property Value
Name
Gets or sets the name of folder.
public string Name { get; set; }
Property Value
- string
The name.
ParentId
Gets or sets the parent folder ID of the email folder.
public int ParentId { get; set; }
Property Value
- int
The parent folder ID.
TopFolderID
Gets or sets the top folder ID of the email folder.
public int TopFolderID { get; set; }
Property Value
- int
The top folder ID.
Methods
Fill(IDataReader)
Fills the specified data reader.
public override void Fill(IDataReader datareader)
Parameters
datareader
IDataReaderThe data reader.
FillRow(DataRow)
Fills the data row.
protected override void FillRow(DataRow row)
Parameters
row
DataRowThe data row.
GetAllCustomFolders(bool, int)
Gets all custom folders.
public static IEnumerable<EmailFolder> GetAllCustomFolders(bool onlyParent, int topFolderId)
Parameters
Returns
- IEnumerable<EmailFolder>
The colection of folders
GetAllEmailsFolders()
Gets all emails folders.
public static IEnumerable<EmailFolder> GetAllEmailsFolders()
Returns
- IEnumerable<EmailFolder>
All folders
GetEmailsCustomFoldersByParentId(int)
Gets emails custom folder using parent id value
public static List<EmailFolder> GetEmailsCustomFoldersByParentId(int parentID)
Parameters
parentID
intId of parent folder
Returns
- List<EmailFolder>
List of email folders
GetEmailsCustomFoldersByTopFolderId(int)
Gets email custom folders by id of top folder
public static List<EmailFolder> GetEmailsCustomFoldersByTopFolderId(int topFolderID)
Parameters
topFolderID
intTop folder id
Returns
- List<EmailFolder>
List of email folders
GetEmailsFolderById(int)
Gets the emails folder by id.
public static EmailFolder GetEmailsFolderById(int folderId)
Parameters
folderId
intThe folder id.
Returns
- EmailFolder
The folder
GetEmailsFolderIdByFolderName(string, int)
Gets the name of the emails folder id by folder.
public static int GetEmailsFolderIdByFolderName(string folderName, int topFolderID)
Parameters
Returns
- int
The id of folder
GetEmailsFolderTopFolderId(string)
Gets the emails folder top folder id.
public static int GetEmailsFolderTopFolderId(string folderID)
Parameters
folderID
stringThe folder id.
Returns
- int
The id of top folder
GetEmailsFoldersByParentId(int)
Gets the emails folders by parent id.
public static IEnumerable<EmailFolder> GetEmailsFoldersByParentId(int parentID)
Parameters
parentID
intThe parent id.
Returns
- IEnumerable<EmailFolder>
The colection of folders
GetEmailsFoldersByTopFolderId(int)
Gets the emails folders by top folder id.
public static IEnumerable<EmailFolder> GetEmailsFoldersByTopFolderId(int topFolderID)
Parameters
topFolderID
intThe top folder id.
Returns
- IEnumerable<EmailFolder>
The colection of folders
IsDraftSystemFolder(EmailFolder)
public static bool IsDraftSystemFolder(EmailFolder folder)
Parameters
folder
EmailFolder
Returns
IsScheduledSystemFolder(EmailFolder)
public static bool IsScheduledSystemFolder(EmailFolder folder)
Parameters
folder
EmailFolder
Returns
IsSentSystemFolder(EmailFolder)
public static bool IsSentSystemFolder(EmailFolder folder)
Parameters
folder
EmailFolder
Returns
IsSystemFolder(EmailFolder)
public static bool IsSystemFolder(EmailFolder folder)
Parameters
folder
EmailFolder
Returns
IsSystemFolder(string, int)
Determines whether is system folder by specified folder name or folder id.
public static bool IsSystemFolder(string folderName, int folderId)
Parameters
Returns
- bool
true
if system folder; otherwise,false
.