GetElement 方法 (Int32)
Gets an element with the specified index from the collection.
命名空間: Microsoft.SqlServer.Dts.Tasks.Exec80PackageTask
組件: Microsoft.SqlServer.Exec80PackageTask (在 Microsoft.SqlServer.Exec80PackageTask.dll 中)
語法
'宣告
Public Function GetElement ( _
i As Integer _
) As Object
'用途
Dim instance As VariablesCollection
Dim i As Integer
Dim returnValue As Object
returnValue = instance.GetElement(i)
public Object GetElement(
int i
)
public:
Object^ GetElement(
int i
)
member GetElement :
i:int -> Object
public function GetElement(
i : int
) : Object
參數
- i
型別:System. . :: . .Int32
The zero-based index of the element to be returned.
傳回值
型別:System. . :: . .Object
An Object containing the element at the specified index.
例外
例外狀況 | 條件 |
---|---|
ArgumentOutOfRangeException | i is less than zero. -or- i is equal to or greater than Count. |