notifyformatinfo.cs

来自「C#邮件代码库,用于邮件发送」· CS 代码 · 共 123 行

CS
123
字号
namespace ASPNET.StarterKit.Communities {

    using System;



    //*********************************************************************
    //
    // NotifyFormatInfo Class
    //
    // Represents all the elements that will be replaced in 
    // a notification email.
    //
    //*********************************************************************

    public class NotifyFormatInfo {
    
        string _username = String.Empty;
        string _fullUsername = String.Empty;
        string _editProfileLink = String.Empty; 
        string _contentTitle = String.Empty;
        string _contentLink = String.Empty;
        string _sectionName = String.Empty;
        

        //*********************************************************************
        //
        // Username Property
        //
        // Represents the username replaced in the email. 
        //
        //*********************************************************************
        
        public string Username {
            get {return _username;}
            set {_username = value;}
        }


        //*********************************************************************
        //
        // FullUsername Property
        //
        // Represents the full username replaced in the email.
        // Includes first and last name. 
        //
        //*********************************************************************
                
        public string FullUsername {
            get {return _fullUsername;}
            set {_fullUsername = value;}
        }
        

        //*********************************************************************
        //
        // EditProfileLink Property
        //
        // Represents the link to the user profile replaced in the email. 
        //
        //*********************************************************************
        
        public string EditProfileLink {
            get {return _editProfileLink;}
            set {_editProfileLink = value;}
        }
        

        //*********************************************************************
        //
        // ContentTitle Property
        //
        // Represents the title of the content item replaced in the email. 
        //
        //*********************************************************************
        
        public string ContentTitle {
            get {return _contentTitle;}
            set {_contentTitle = value;}
        }
        

        //*********************************************************************
        //
        // ContentLink Property
        //
        // Represents the link to the content page replaced in the email. 
        //
        //*********************************************************************
        
        public string ContentLink {
            get {return _contentLink;}
            set {_contentLink = value;}
        }
        

        //*********************************************************************
        //
        // SectionName Property
        //
        // Represents the name of the section replaced in the email. 
        //
        //*********************************************************************
        
        public string SectionName {
            get {return _sectionName;}
            set {_sectionName = value;}
        }
    


        //*********************************************************************
        //
        // NotfifyFormatInfo Constructor
        //
        // Initializes the NotifyFormatInfo class. 
        //
        //*********************************************************************
        
        public NotifyFormatInfo() {}
    }
}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?