判断源字符串是否包含特征字符串。
忽略大小写。
source或 pattern为null时返回false。
Namespace: Appkit.CommonAssembly: Appkit (in Appkit.dll) Version: 2.0.0.0 (2.0.0.0)
Syntaxpublic static bool Contains(
string source,
string pattern
)
Parameters
- source
- Type: SystemString
源字符串。 - pattern
- Type: SystemString
特征字符串。
Return Value
Type:
Booleantrue或false。
See Also