SPAlertCollection.Site property

Gets the parent site collection for the collection. This property is deprecated.

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

public SPSite Site { get; }

Property value

Type: Microsoft.SharePoint.SPSite
A Microsoft.SharePoint.SPSite object that represents the site.

Caution noteCaution

While this feature is still supported in the current product version, it may be removed in the future. If you write new applications, avoid using this deprecated feature, which is maintained only for backward compatibility. If you modify existing applications, you are strongly encouraged to remove any dependency on this feature.