Click or drag to resize

ConditionMethodsStartsWith Method

Gets or sets a value indicating whether the second string is a prefix of the first one.

Namespace:  NLog.Conditions
Assembly:  NLog (in NLog.dll) Version: 5.5.0+1873145cbc26e0312d9481234d69ce7dc68aac4e
Syntax
public static bool StartsWith(
	string haystack,
	string needle,
	bool ignoreCase = true
)

Parameters

haystack
Type: SystemString
The first string.
needle
Type: SystemString
The second string.
ignoreCase (Optional)
Type: SystemBoolean
Optional. If true (default), case is ignored; if false, case is significant.

Return Value

Type: Boolean
true when the second string is a prefix of the first string, false otherwise.
See Also