EventInfos.Item 属性
Returns the EventInfo object from the collection.
命名空间: Microsoft.SqlServer.Dts.Runtime
程序集: Microsoft.SqlServer.ManagedDTS(在 Microsoft.SqlServer.ManagedDTS.dll 中)
语法
声明
Public ReadOnly Default Property Item ( _
index As Object _
) As EventInfo
Get
用法
Dim instance As EventInfos
Dim index As Object
Dim value As EventInfo
value = instance(index)
public EventInfo this[
Object index
] { get; }
public:
property EventInfo^ default[Object^ index] {
EventInfo^ get (Object^ index);
}
member Item : EventInfo
JScript 支持使用索引属性,但不支持声明新索引属性。
参数
- index
类型:System.Object
The name, description, ID, or index of the EventInfo object to return.
属性值
类型:Microsoft.SqlServer.Dts.Runtime.EventInfo
An EventInfo object.
注释
If the call to Contains method returns true, you can access the specified element in the collection by using the syntax EventInfos[index]. If the Contains returns false, this property throws an exception. In C#, this property is the indexer for the EventInfos class.