语言

EventInfos.Item[Object] 属性

定义

返回 EventInfo 集合中的对象。

public:
 property Microsoft::SqlServer::Dts::Runtime::EventInfo ^ default[System::Object ^] { Microsoft::SqlServer::Dts::Runtime::EventInfo ^ get(System::Object ^ index); };
public Microsoft.SqlServer.Dts.Runtime.EventInfo this[object index] { get; }
member this.Item(obj) : Microsoft.SqlServer.Dts.Runtime.EventInfo
Default Public ReadOnly Property Item(index As Object) As EventInfo

参数

index
Object

要返回对象的 EventInfo 名称、描述、ID或索引。

属性值

一个 EventInfo 对象。

注解

如果调用方法 Contains 返回 true,你可以通过语法 EventInfos[index]访问集合中指定的元素。 如果返回 Containsfalse,该性质会抛出异常。 在 C# 中,此属性是类的 EventInfos 索引器。

适用于