示例#1
0
        /// <summary>
        /// Simple Summary of the AuditDetail
        /// </summary>
        /// <returns></returns>
        public override string ToString()
        {
            System.Text.StringBuilder sb = new System.Text.StringBuilder();

            sb.Append("CreatedDate: ");
            sb.Append(CreatedDate.ToString());
            sb.Append(", CreatedEntryUser: "******", LastModifiedDate: ");
            sb.Append(LastModifiedDate?.ToString());
            sb.Append(", LastModifiedEntryUser: ");
            sb.Append(LastModifiedEntryUserDisplayName);

            return(sb.ToString());
        }
示例#2
0
        internal void ToXml(XmlWriter writer, string element)
        {
            writer.WriteStartElement(element);
            writer.WriteAttributeString("date", LastModifiedDate.ToString("s"));
            writer.WriteAttributeString("name", Name);

            if (!String.IsNullOrEmpty(OwnerName))
            {
                writer.WriteAttributeString("owner", OwnerName);
            }
            if (!String.IsNullOrEmpty(Scope))
            {
                writer.WriteAttributeString("scope", Scope);
            }

            writer.WriteAttributeString("lid", LabelId.ToString());
            writer.WriteEndElement();
        }