共用方式為


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.

命名空間: Microsoft.SqlServer.NotificationServices
組件: Microsoft.SqlServer.NotificationServices (in microsoft.sqlserver.notificationservices.dll)

語法

'宣告
<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)

參數

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

屬性值

An Object that represents the field's value.

備註

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

執行緒安全性

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.

平台

開發平台

如需受支援的平台清單,請參閱<安裝 SQL Server 2005 的硬體和軟體需求>。

目標平台

如需受支援的平台清單,請參閱<安裝 SQL Server 2005 的硬體和軟體需求>。

請參閱

參考

Event Class
Event Members
Microsoft.SqlServer.NotificationServices Namespace