共用方式為


Strings.InStr 方法

傳回整數,指定一個字串在另一個字串內第一次出現的起始位置。

多載清單

名稱 說明
Strings.InStr (String, String, CompareMethod) 傳回整數,指定一個字串在另一個字串內第一次出現的起始位置。

受 .NET Compact Framework 支援。
Strings.InStr (Int32, String, String, CompareMethod) 傳回整數,指定一個字串在另一個字串內第一次出現的起始位置。

受 .NET Compact Framework 支援。

請參閱

參考

Strings 類別
Strings 成員
Microsoft.VisualBasic 命名空間
ArgumentException

其他資源

InStr 函式 (Visual Basic)
Visual Basic 中的字串
Visual Basic 中的字串簡介
InStrRev 函式 (Visual Basic)
Option Compare 陳述式
StrComp 函式 (Visual Basic)
程式設計項目的支援變更摘要