SPEventReceiverDefinitionCollection.Add method (Guid)
事件接收器將定義加入至識別所指定的全域唯一識別項的集合。
Namespace: Microsoft.SharePoint
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Syntax
'宣告
Public Function Add ( _
Id As Guid _
) As SPEventReceiverDefinition
'用途
Dim instance As SPEventReceiverDefinitionCollection
Dim Id As Guid
Dim returnValue As SPEventReceiverDefinition
returnValue = instance.Add(Id)
public SPEventReceiverDefinition Add(
Guid Id
)
參數
Id
Type: System.GuidGuid ,表示事件接收器定義。
傳回值
Type: Microsoft.SharePoint.SPEventReceiverDefinition
SPEventReceiverDefinition 物件,表示事件接收器定義。
備註
這個方法會有任何事件接收器應該採取行動的SPList物件。
請參閱
參照
SPEventReceiverDefinitionCollection class
SPEventReceiverDefinitionCollection members