Class Standard.Area
- Namespace
- Dynamicweb.Notifications
- Assembly
- Dynamicweb.dll
Provides notification names for Areas.
- Inheritance
-
Standard.
Area
- Inherited Members
Examples
namespace Dynamicweb.Examples.Notifications.Standard
{
[Dynamicweb.Extensibility.Notifications.Subscribe(Dynamicweb.Notifications.Standard.User.OnExtranetLogin)]
public class OnExtranetLogOnObserver : Dynamicweb.Extensibility.Notifications.NotificationSubscriber
{
public override void OnNotify(string notification, Dynamicweb.Extensibility.Notifications.NotificationArgs args)
{
if (args == null)
return;
if (!(args is Dynamicweb.Notifications.Standard.User.OnExtranetLoginArgs))
return;
Dynamicweb.Notifications.Standard.User.OnExtranetLoginArgs item = (Dynamicweb.Notifications.Standard.User.OnExtranetLoginArgs)args;
//Pass user name to the notification e-mail
string emailBody = string.Format("The user ({0}) has been logged-in.", item.User.Name);
}
}
}
Fields
OnAfterAreaDeleted
Area deleted notification. Occurs after the area has been deleted.
Field Value
Remarks
The passed NotificationArgs is Dynamicweb.
OnAreaSaved
Area saved notification. Occurs after the area has been saved.
Field Value
Remarks
The passed NotificationArgs is Dynamicweb.
OnBeforeAreaDeleted
Area deleted notification. Occurs before the area is deleted.
Field Value
Remarks
The passed NotificationArgs is Dynamicweb.
OnBeforeAreaSaved
Area saved notification. Occurs before the area is saved.
Field Value
Remarks
The passed NotificationArgs is Dynamicweb.