VariablesCollection.GetElement Method (Int32)

Gets an element with the specified index from the collection.

命名空间: Microsoft.SqlServer.Dts.Tasks.Exec80PackageTask
程序集: Microsoft.SqlServer.Exec80PackageTask (in microsoft.sqlserver.exec80packagetask.dll)

语法

声明
Public Function GetElement ( _
    i As Integer _
) As Object
public Object GetElement (
    int i
)
public:
Object^ GetElement (
    int i
)
public Object GetElement (
    int i
)
public function GetElement (
    i : int
) : Object

参数

  • i
    The zero-based index of the element to be returned.

返回值

An Object containing the element at the specified index.

异常

异常类型 条件
ArgumentOutOfRangeException

i is less than zero.

-or-

i is equal to or greater than Count.

线程安全

Any public static (Shared in Microsoft Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

平台

开发平台

有关支持的平台列表,请参阅安装 SQL Server 2005 的硬件和软件要求。

目标平台

有关支持的平台列表,请参阅安装 SQL Server 2005 的硬件和软件要求。

请参阅

参考

VariablesCollection Class
VariablesCollection Members
Microsoft.SqlServer.Dts.Tasks.Exec80PackageTask Namespace