Partager via


Event.Item Property (Int32)

Gets or sets the value of an event data field in the subscription record, using the field ordinal as an identifier.

Espace de noms: Microsoft.SqlServer.NotificationServices
Assembly: Microsoft.SqlServer.NotificationServices (in microsoft.sqlserver.notificationservices.dll)

Syntaxe

'Déclaration
<ComVisibleAttribute(False)> _
Public Default Property Item ( _
    fieldOrdinal As Integer _
) As Object
[ComVisibleAttribute(false)] 
public Object this [
    int fieldOrdinal
] { get; set; }
[ComVisibleAttribute(false)] 
public:
property Object^ default [int] {
    Object^ get (int fieldOrdinal);
    void set (int fieldOrdinal, Object^ value);
}
/** @property */
public Object get_Item (int fieldOrdinal)

/** @property */
public void set_Item (int fieldOrdinal, Object value)

Paramètres

  • fieldOrdinal
    The zero-based ordinal of the event field.

Valeur de propriété

An Object that represents the field's value.

Notes

The Int32 overload of the Item property is not available through COM interop.

Sécurité des threads

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.

Plateformes

Plateformes de développement

Pour obtenir la liste des plateformes prises en charge, consultez Configuration matérielle et logicielle requise pour l'installation de SQL Server 2005.

Plateformes cibles

Pour obtenir la liste des plateformes prises en charge, consultez Configuration matérielle et logicielle requise pour l'installation de SQL Server 2005.

Voir aussi

Référence

Event Class
Event Members
Microsoft.SqlServer.NotificationServices Namespace