Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Checks whether the specified string ends with the specified pattern.
Namespace: Microsoft.TeamFoundation
Assembly: Microsoft.TeamFoundation.Common (in Microsoft.TeamFoundation.Common.dll)
Syntax
'Declaration
Public Function EndsWith ( _
main As String, _
pattern As String _
) As Boolean
public bool EndsWith(
string main,
string pattern
)
public:
bool EndsWith(
String^ main,
String^ pattern
)
member EndsWith :
main:string *
pattern:string -> bool
public function EndsWith(
main : String,
pattern : String
) : boolean
Parameters
main
Type: System.StringThe string to check.
pattern
Type: System.StringThe pattern to check for.
Return Value
Type: System.Boolean
True if the specified string ends with 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.