using Microsoft.SharePoint; using System; namespace SPSolutions.SharePoint.Alerts { public class SPWebAlertAssociationContainer : SPAlertAssociationContainer { private SPWeb m_spWeb; public override string AssociationTitle { get { if (this.m_spWeb == null) { return string.Empty; } return string.Format("{0} : {1}", string.IsNullOrEmpty(this.m_spWeb.Title) ? "Unknown" : this.m_spWeb.Title, this.m_spWeb.Url); } } public override string Id { get { if (this.m_spWeb == null) { return string.Empty; } return this.m_spWeb.ID.ToString(); } } public SPWebAlertAssociationContainer(SPWeb spWeb) { this.m_spWeb = spWeb; } } }