Hinweis
Für den Zugriff auf diese Seite ist eine Autorisierung erforderlich. Sie können versuchen, sich anzumelden oder das Verzeichnis zu wechseln.
Für den Zugriff auf diese Seite ist eine Autorisierung erforderlich. Sie können versuchen, das Verzeichnis zu wechseln.
Checks whether the specified string starts with the specified pattern.
Namespace: Microsoft.TeamFoundation
Assembly: Microsoft.TeamFoundation.Common (in Microsoft.TeamFoundation.Common.dll)
Syntax
'Declaration
Public Function StartsWith ( _
main As String, _
pattern As String _
) As Boolean
public bool StartsWith(
string main,
string pattern
)
public:
bool StartsWith(
String^ main,
String^ pattern
)
member StartsWith :
main:string *
pattern:string -> bool
public function StartsWith(
main : String,
pattern : String
) : boolean
Parameters
- main
Type: System.String
The string to check.
- pattern
Type: System.String
The pattern to search for.
Return Value
Type: System.Boolean
True if the specified string starts 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.