Click or drag to resize

StandardUserOnExtranetLoginArgs Class

Provides information about the user
Inheritance Hierarchy
SystemObject
  Dynamicweb.Extensibility.NotificationsNotificationArgs
    Dynamicweb.NotificationsStandardUserOnExtranetLoginArgs

Namespace:  Dynamicweb.Notifications
Assembly:  Dynamicweb (in Dynamicweb.dll) Version: 9.10.0
Syntax
public class OnExtranetLoginArgs : NotificationArgs

The StandardUserOnExtranetLoginArgs type exposes the following members.

Constructors
  NameDescription
Public methodStandardUserOnExtranetLoginArgs
Initializes a new instance of the StandardUserOnExtranetLoginArgs class
Top
Properties
  NameDescription
Public propertyUser
Gets the user.
Top
Remarks
Examples
C#
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);

        }
    }
}
See Also