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

Return Value

Type: System.Boolean
True if the specified string contains the specified pattern; otherwise, false.

.NET Framework Security

See Also

Reference

TFStringComparer Class

Microsoft.TeamFoundation Namespace