BuildMaster SDK Reference
   
  
    
      
        Version: 
        
      
      
      
      Replace(string input, string replacement, int count, int startat) Method
  
            Within a specified input string, replaces a specified maximum number of strings that match a regular expression pattern with a specified replacement string.
            
 
  Syntax
  
    public
    string Replace(string input, string replacement, int count, int startat)
  Parameters
  
    - input
 
    - Type: string
The string to search for a match.
 
  
  
    - replacement
 
    - Type: string
The replacement string.
 
  
  
    - count
 
    - Type: int
The maximum number of times the replacement can occur.
 
  
  
    - startat
 
    - Type: int
The character position in the input string where the search begins.
 
  
 
  Returns
  A new string that is identical to the input string, except that a replacement string takes the place of each matched string.
 
  Exceptions
  
    
      | 
        System.ArgumentNullException
       | 
      
         
          input or replacement is null (Nothing in Visual Basic). 
       | 
    
    
      | 
        System.ArgumentOutOfRangeException
       | 
      
         
          startat is less than zero or greater than the length of input. 
       |