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.