共用方式為


SPEventReceiverDefinitionCollection.Item property (Guid)

從集合中取得具有指定識別項的事件接收器定義。

Namespace:  Microsoft.SharePoint
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)

Syntax

'宣告
Public ReadOnly Default Property Item ( _
    eventReceiverId As Guid _
) As SPEventReceiverDefinition
    Get
'用途
Dim instance As SPEventReceiverDefinitionCollection
Dim eventReceiverId As Guid
Dim value As SPEventReceiverDefinition

value = instance(eventReceiverId)
public SPEventReceiverDefinition this[
    Guid eventReceiverId
] { get; }

參數

  • eventReceiverId
    Type: System.Guid

    Guid用來識別要從集合中擷取的事件接收器定義。

Property value

Type: Microsoft.SharePoint.SPEventReceiverDefinition
SPEventReceiverDefinition 物件,表示事件接收器定義。

備註

如需有關 Windows SharePoint Services 以及其如何關聯至事件處理常式中所使用的欄位型別資訊,請參閱SPListItem類別。

請參閱

參照

SPEventReceiverDefinitionCollection class

SPEventReceiverDefinitionCollection members

Item overload

Microsoft.SharePoint namespace

Item[Int32]