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

参数

返回值

类型: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.