IDTSRuntimeConnectionCollection100.Item[Object] Property

Definition

获取由 Index 参数指定的 IDTSRuntimeConnection100 对象。Gets the IDTSRuntimeConnection100 object specified by the Index parameter.

public:
 property Microsoft::SqlServer::Dts::Pipeline::Wrapper::IDTSRuntimeConnection100 ^ default[System::Object ^] { Microsoft::SqlServer::Dts::Pipeline::Wrapper::IDTSRuntimeConnection100 ^ get(System::Object ^ Index); };
[System.Runtime.InteropServices.DispId(0)]
[get: System.Runtime.InteropServices.DispId(0)]
public Microsoft.SqlServer.Dts.Pipeline.Wrapper.IDTSRuntimeConnection100 this[object Index] { get; }
member this.Item(obj) : Microsoft.SqlServer.Dts.Pipeline.Wrapper.IDTSRuntimeConnection100
Default Public ReadOnly Property Item(Index As Object) As IDTSRuntimeConnection100

Parameters

Index
Object

要检索的连接的名称或索引。The name or index of the connection to retrieve.

Property Value

IDTSRuntimeConnection100

Index 参数指定的 IDTSRuntimeConnection100The IDTSRuntimeConnection100 specified by the Index parameter.

Attributes

Remarks

GetObjectByID方法检索与参数匹配的运行时连接对象 IndexThe GetObjectByID method retrieves the run-time connection object matching the Index parameter. 如果不存在匹配的输入,则会引发 Hresult 异常,则引发 DTS_E_INVALIDINDEX 异常。If an input does not exist that matches, an Microsoft.SqlServer.Dts.Runtime.HResults.DTS_E_INVALIDINDEX exception is thrown.

Applies to