TFStringComparer.Contains Method
Checks whether the specified string contains the specified pattern.
Namespace: Microsoft.TeamFoundation
Assembly: Microsoft.TeamFoundation.Common (in Microsoft.TeamFoundation.Common.dll)
Syntax
‘선언
Public Function Contains ( _
main As String, _
pattern As String _
) As Boolean
public bool Contains(
string main,
string pattern
)
public:
bool Contains(
String^ main,
String^ pattern
)
member Contains :
main:string *
pattern:string -> bool
public function Contains(
main : String,
pattern : String
) : boolean
Parameters
- main
Type: System.String
The string to check.
- pattern
Type: System.String
The pattern to check for.
Return Value
Type: System.Boolean
True if the specified string contains the specified pattern; otherwise, false.
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.