CollationInfo.IsPrefix Method

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

'Declaration
Public Function IsPrefix ( _
    source As String, _
    prefix As String _
) As Boolean
'Usage
Dim instance As CollationInfo 
Dim source As String 
Dim prefix As String 
Dim returnValue As Boolean 

returnValue = instance.IsPrefix(source, _
    prefix)
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 : String, 
    prefix : String
) : 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

Reference

CollationInfo Class

Microsoft.SqlServer.Management.SqlParser.Metadata Namespace