Partilhar via


EventInfos.Item Property

Returns the EventInfo object from the collection.

Namespace: Microsoft.SqlServer.Dts.Runtime
Assembly: Microsoft.SqlServer.ManagedDTS (in microsoft.sqlserver.manageddts.dll)

Syntax

'Declaration
Public ReadOnly Default Property Item ( _
    index As Object _
) As EventInfo
public EventInfo this [
    Object index
] { get; }
public:
property EventInfo^ default [Object^] {
    EventInfo^ get (Object^ index);
}
/** @property */
public EventInfo get_Item (Object index)

Parameters

  • index
    The name, description, ID, or index of the EventInfo object to return.

Property Value

An EventInfo object.

Remarks

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.

Thread Safety

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.

Platforms

Development Platforms

For a list of the supported platforms, see Hardware and Software Requirements for Installing SQL Server 2005.

Target Platforms

For a list of the supported platforms, see Hardware and Software Requirements for Installing SQL Server 2005.

See Also

Reference

EventInfos Class
EventInfos Members
Microsoft.SqlServer.Dts.Runtime Namespace