RegexReplace Members

MSBuild

Task to replace portions of strings within the Input list Output list contains all the elements of the Input list after performing the Regex Replace.


The following tables list the members exposed by RegexReplace.

Public Constructors

  Name Description
Public method RegexReplace Initializes a new instance of the RegexReplace class.
Top

Public Properties

  Name Description
Public property BuildEngine Gets or sets the instance of the IBuildEngine object used by the task. (inherited from Task)
Public property Count Number of matches to allow on each input item. -1 indicates to perform matches on all matches within input item
Public property Expression Regex expression (inherited from RegexBase)
Public property HostObject Gets or sets the host object associated with the task. (inherited from Task)
Public property Input Input, list of items to perform the regex on (inherited from RegexBase)
Public property Log Gets an instance of a TaskLoggingHelper class containing task logging methods. (inherited from Task)
Public property Options Regex options as strings corresponding to the RegexOptions enum: Compiled CultureInvariant ECMAScript ExplicitCapture IgnoreCase IgnorePatternWhitespace Multiline None RightToLeft Singleline (inherited from RegexBase)
Public property Output Results of the Regex transformation. (inherited from RegexBase)
Public property Replacement String replacing matching expression strings in input list. If left empty matches in the input list are removed (replaced with empty string)
Public property StartAt Position within the input item to start matching
Top

Protected Properties

  Name Description
Family property ExpressionOptions Options converted to RegexOptions enum (inherited from RegexBase)
Family property HelpKeywordPrefix Gets or sets the prefix used to compose Help keywords from resource names. (inherited from Task)
Family property TaskResources Gets or sets the culture-specific resources associated with the task. (inherited from Task)
Top

Public Methods

  Name Description
Public method Equals Determines whether the specified Object is equal to the current Object. (inherited from Object)
Public method Execute Overidden. Performs the Replace task
Public method GetHashCode Serves as a hash function for a particular type. GetHashCode is suitable for use in hashing algorithms and data structures like a hash table. (inherited from Object)
Public method GetType Gets the Type of the current instance. (inherited from Object)
Public method ToString Returns a String that represents the current Object. (inherited from Object)
Top

Protected Methods

  Name Description
Family method Finalize Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection. (inherited from Object)
Family method MemberwiseClone Creates a shallow copy of the current Object. (inherited from Object)
Top

See Also

Syntax based on .NET Framework version 2.0.
Documentation version 1.0.0.0.