DbSyncAdapterCollection.IndexOf メソッド (String)
テーブル名が指定されている場合は、DbSyncAdapter オブジェクトを検索し、コレクション全体で最初に見つかった位置の、0 から始まるインデックスを返します。
名前空間: Microsoft.Synchronization.Data
アセンブリ: Microsoft.Synchronization.Data (microsoft.synchronization.data.dll 内)
構文
'宣言
Public Function IndexOf ( _
tableName As String _
) As Integer
'使用
Dim instance As DbSyncAdapterCollection
Dim tableName As String
Dim returnValue As Integer
returnValue = instance.IndexOf(tableName)
public int IndexOf (
string tableName
)
public:
int IndexOf (
String^ tableName
)
public int IndexOf (
String tableName
)
public function IndexOf (
tableName : String
) : int
パラメーター
- tableName
テーブルの名前。名前を指定して、DbSyncAdapterCollection 内の関連付けられている DbSyncAdapter オブジェクトのインデックスを取得します。
戻り値
その文字列が見つかった場合は tableName のインデックス位置。見つからなかった場合は -1。
参照
リファレンス
DbSyncAdapterCollection クラス
DbSyncAdapterCollection メンバー
Microsoft.Synchronization.Data 名前空間