XmlAttributeMask.cs 938 B

123456789101112131415161718192021222324252627282930313233
  1. namespace Wayne.Lib.Log
  2. {
  3. /// <summary>
  4. /// Used within the XmlLogObject class to mask a certain XML element.
  5. /// </summary>
  6. public class XmlAttributeMask : XmlNodeMask
  7. {
  8. #region Construction
  9. /// <summary>
  10. /// Construction.
  11. /// </summary>
  12. /// <param name="nodeName">The name of the node to mask.</param>
  13. /// <param name="attributeName">The name of the attribute to mask.</param>
  14. /// <param name="maskKind">The way to mask.</param>
  15. public XmlAttributeMask(string nodeName, string attributeName, DebugLogMaskKind maskKind)
  16. : base(nodeName, maskKind)
  17. {
  18. AttributeName = attributeName;
  19. }
  20. #endregion
  21. #region Properties
  22. /// <summary>
  23. /// The name of the attribute to mask.
  24. /// </summary>
  25. public string AttributeName { get; private set; }
  26. #endregion
  27. }
  28. }