Suggest a change
                  
                    
                    
                      Success!
                      Thank you for helping us improve the quality of Unity Documentation. Although we cannot accept all submissions, we do read each suggested change from our users and will make updates where applicable.
                      Close
                     
                    
                      Submission failed
                      For some reason your suggested change could not be submitted. Please <a>try again</a> in a few minutes. And thank you for taking the time to help us improve the quality of Unity Documentation.
                      Close
                     
                    
                   
                 
                
                
                
               
              
                
                  
                    
                    
                    
Declaration
public bool Contains(char c,
stringComparison ordinal);
    
                 
               
              
                Parameters
                
                  
                    
                      | Parameter | 
                      Description | 
                    
                  
                  
                    | c | 
                    A character. | 
                  
                  
                    | ordinal | 
                    A string comparison option. | 
                  
                
               
              
                Returns
                
                  bool
        True if the character is found, otherwise false.
      
               
              
                Description
                Checks if a character is contained in the StringView.
               
              
              
                
                  
                    
                    
                    
Declaration
public bool Contains(string s,
stringComparison ordinal);
    
                 
               
              
                Parameters
                
                  
                    
                      | Parameter | 
                      Description | 
                    
                  
                  
                    | s | 
                    A string. | 
                  
                  
                    | ordinal | 
                    A string comparison option. | 
                  
                
               
              
                Returns
                
                  bool
        True if the string is found, otherwise false.
      
               
              
                Description
                Checks if a string is contained in the StringView.
               
              
              
                
                  
                    
                    
                    
Declaration
public bool Contains(stringView s,
stringComparison ordinal);
    
                 
               
              
                Parameters
                
                  
                    
                      | Parameter | 
                      Description | 
                    
                  
                  
                    | s | 
                    A StringView. | 
                  
                  
                    | ordinal | 
                    A string comparison option. | 
                  
                
               
              
                Returns
                
                  bool
        True if the StringView is found, otherwise false.