ParameterInfos.IndexOf 方法
Gets the index of the parameter with the specified name in the parameter collection.
命名空間: Microsoft.SqlServer.Dts.Runtime
組件: Microsoft.SqlServer.ManagedDTS (在 Microsoft.SqlServer.ManagedDTS.dll 中)
語法
'宣告
Public Function IndexOf ( _
parameterName As String _
) As Integer
'用途
Dim instance As ParameterInfos
Dim parameterName As String
Dim returnValue As Integer
returnValue = instance.IndexOf(parameterName)
public int IndexOf(
string parameterName
)
public:
int IndexOf(
String^ parameterName
)
member IndexOf :
parameterName:string -> int
public function IndexOf(
parameterName : String
) : int
參數
- parameterName
型別:System.String
The name of the parameter.
傳回值
型別:System.Int32
The index of the parameter with the specified name if found in the parameter collection; otherwise, -1.