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
- source
Type: System.String
The source string to search.
- 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.