[Solved] How can I check if a string contains two other strings [closed]

[ad_1]

ex.message.Contains("Cannot open server") && ex.message.Contains("requested by the login")

[ad_2]

solved How can I check if a string contains two other strings [closed]