EscapeValueAttribute Class

This is used to mark a property that needs its value escaped when stored in an MSBuild project file

Definition

Namespace: SandcastleBuilder.Utils.Design
Assembly: SandcastleBuilder.Utils (in SandcastleBuilder.Utils.dll) Version: 2024.12.21.0
public sealed class EscapeValueAttribute : Attribute
Inheritance
Object    Attribute    EscapeValueAttribute

Remarks

MSBuild requires that the following characters be escaped in property values unless they are intended to be interpreted by the build engine: % * ? @ $ ( ) ; '. In addition, this attribute will cause the values to be HTML encoded so that any HTML characters, especially tag delimiters are not interpreted. MSBuild tends to add XML namespaces to things it thinks are XML elements.

Constructors

EscapeValueAttributeInitializes a new instance of the EscapeValueAttribute class

Properties

TypeIdWhen implemented in a derived class, gets a unique identifier for this Attribute.
(Inherited from Attribute)

Methods

EqualsReturns a value that indicates whether this instance is equal to a specified object.
(Inherited from Attribute)
Escape This is used to HTML encode and escape an MSBuild property value
GetHashCodeReturns the hash code for this instance.
(Inherited from Attribute)
GetTypeGets the Type of the current instance.
(Inherited from Object)
IsDefaultAttributeWhen overridden in a derived class, indicates whether the value of this instance is the default value for the derived class.
(Inherited from Attribute)
MatchWhen overridden in a derived class, returns a value that indicates whether this instance equals a specified object.
(Inherited from Attribute)
ToStringReturns a string that represents the current object.
(Inherited from Object)
Unescape This is used to return an unescaped and HTML decoded MSBuild value

See Also