[AttributeUsage(AttributeTargets.Method,AllowMultiple = true,Inherited = true)]
    public class LifestyleAttribute : Attribute
    {
        private string _command;
        private string _status;        public string command
        {
            get { return _command; }
        }
        public string status
        {
            get { return _status; }
        }        public LifestyleAttribute(string command, string status)
        {
           System.Windows.Forms.MessageBox.Show("消息");
        }
}
    --调用
    public class aa
    {
        //此处怎么加断电跟踪 ?
        [Lifestyle("command","status")]
        private void dd()
        {
            System.Windows.Forms.MessageBox.Show("显示消息");
        }
    }