Collation.StartsWith MethodCollation.StartsWith MethodCollation::StartsWith Method

Returns a boolean value indicating whether one string starts with a specified prefix under this collation.

Syntax

Public MustOverride Function StartsWith( _
    value As String, _
    prefix As String _
) As Boolean
public abstract bool StartsWith(
    string value,
    string prefix
)
public:
virtual bool StartsWith(
    String^ value, 
    String^ prefix
) abstract
 

Return Value

Type: System.BooleanSystem.BooleanSystem::Boolean

trueTruetrue if the value starts with prefix; otherwise falseFalsefalse.

Exceptions

ExceptionCondition
ArgumentNullExceptionArgumentNullExceptionArgumentNullException value or prefix is null a null reference (Nothing in Visual Basic) nullptr.

Remarks

This method implements the fn:starts-with function for the specified collation, and should follow the same semantics.