共用方式為


SPEventReceiverDefinition.ContextCollectionId property

取得或設定Guid (全域唯一識別碼) 的指定的SharePoint Foundation事件接收者的處理程序相關聯的內容物件的集合。

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

Syntax

'宣告
Public Property ContextCollectionId As Guid
    Get
    Set
'用途
Dim instance As SPEventReceiverDefinition
Dim value As Guid

value = instance.ContextCollectionId

instance.ContextCollectionId = value
public Guid ContextCollectionId { get; set; }

Property value

Type: System.Guid
Guid ,表示用來擷取集合物件的識別項。

備註

內容是提供網站和其元件的相關資訊的名稱 / 值組的集合。內容集合是一系列的群組在一起以提供類似功能的內容。例如,文書處理器可能有的檔案內容,編輯內容中,並檢視內容。內容提供功能,藉由建立此內容集合內物件的事件處理常式,並開發程式碼來處理這些事件。

請參閱

參照

SPEventReceiverDefinition class

SPEventReceiverDefinition members

Microsoft.SharePoint namespace

GetContextSite(HttpContext)

SPContext

SPEventReceiver