CollationInfo.IsPrefix Method (String, String)

 

Applies To: SQL Server 2016 Preview

Determines whether the specified source string starts with the specified prefix.

Namespace:   Microsoft.SqlServer.Management.SqlParser.Metadata
Assembly:  Microsoft.SqlServer.Management.SqlParser (in Microsoft.SqlServer.Management.SqlParser.dll)

Syntax

public bool IsPrefix(
    string source,
    string prefix
)
public:
bool IsPrefix(
    String^ source,
    String^ prefix
)
member IsPrefix : 
        source:string *
        prefix:string -> bool
Public Function IsPrefix (
    source As String,
    prefix As String
) As Boolean

Parameters

  • prefix
    Type: System.String

    The prefix to compare with the beginning of the source.

Return Value

Type: System.Boolean

true if the source string starts with the prefix; otherwise, false.

See Also

CollationInfo Class
Microsoft.SqlServer.Management.SqlParser.Metadata Namespace

Return to top