Propriété Item
Returns the EventInfo object from the collection.
Espace de noms : Microsoft.SqlServer.Dts.Runtime
Assembly : Microsoft.SqlServer.ManagedDTS (en Microsoft.SqlServer.ManagedDTS.dll)
Syntaxe
'Déclaration
Public ReadOnly Default Property Item ( _
index As Object _
) As EventInfo
Get
'Utilisation
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 prend en charge l'utilisation de propriétés indexées, mais pas la déclaration de nouvelles propriétés.
Paramètres
- index
Type : System. . :: . .Object
The name, description, ID, or index of the EventInfo object to return.
Valeur de propriété
Type : Microsoft.SqlServer.Dts.Runtime. . :: . .EventInfo
An EventInfo object.
Notes
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.