IsPrefix メソッド
指定したソース文字列が指定したプレフィックスで始まるかどうかを示します。
名前空間: 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
検索するソース文字列です。
- prefix
型: System. . :: . .String
ソースの先頭と比較するプレフィックスです。
戻り値
型: System. . :: . .Boolean
ソース文字列がプレフィックスで始まる場合は true、それ以外の場合は false です。