Метод IsPrefix
Determines whether the specified source string starts with the specified prefix.
Пространство имен: Microsoft.SqlServer.Management.SqlParser.Metadata
Сборка: Microsoft.SqlServer.Management.SqlParser (в Microsoft.SqlServer.Management.SqlParser.dll)
Синтаксис
'Декларация
Public Function IsPrefix ( _
source As String, _
prefix As String _
) As Boolean
'Применение
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
Параметры
- source
Тип: System. . :: . .String
The source string to search.
- prefix
Тип: System. . :: . .String
The prefix to compare with the beginning of the source.
Возвращаемое значение
Тип: System. . :: . .Boolean
true if the source string starts with the prefix; otherwise, false.
См. также