Dynamicweb 8 Documentation
Standard.User.OnBeforeExtranetLogOffArgs Class
Members  Example 

Provides information about the user
Object Model
Standard.User.OnBeforeExtranetLogOffArgs ClassExtranet Class
Syntax
'Declaration
 
Public Class Standard.User.OnBeforeExtranetLogOffArgs 
   Inherits Dynamicweb.Extensibility.NotificationArgs
public class Standard.User.OnBeforeExtranetLogOffArgs : Dynamicweb.Extensibility.NotificationArgs 
Remarks
Arguments passed to Dynamicweb.Notifications.Standard.User.OnBeforeExtranetLogOff notification
Example
Overriding the user extranet logoff notification in DynamicwebOverriding the user extranet logoff notification in Dynamicweb
                            
namespace Dynamicweb.Examples.CSharp.Notifications.Standard
{
    [Dynamicweb.Extensibility.Subscribe(Dynamicweb.Notifications.Standard.User.OnBeforeExtranetLogOff)]
    public class OnBeforeExtranetLogOffObserver : Dynamicweb.Extensibility.NotificationSubscriber
    {
        public override void OnNotify(string notification, Dynamicweb.Extensibility.NotificationArgs args)
        {
            if (args == null)
                return;

            Dynamicweb.Notifications.Standard.User.OnBeforeExtranetLogOffArgs onBeforeExtranetLogOffArgs = args as Dynamicweb.Notifications.Standard.User.OnBeforeExtranetLogOffArgs;

            //TODO: Add code here

        }
    }
}
                            
                            
Namespace Notifications.Standard
    <Extensibility.Subscribe(Global.Dynamicweb.Notifications.Standard.User.OnBeforeExtranetLogOff)> _
    Public Class OnBeforeExtranetLogOffObserver
        Inherits Global.Dynamicweb.Extensibility.NotificationSubscriber

        Public Overrides Sub OnNotify(ByVal notification As String, ByVal args As Global.Dynamicweb.Extensibility.NotificationArgs)
            If args Is Nothing Then
                Return
            End If

            Dim onBeforeExtranetLogOffArgs As Global.Dynamicweb.Notifications.Standard.User.OnBeforeExtranetLogOffArgs = DirectCast(args, Global.Dynamicweb.Notifications.Standard.User.OnBeforeExtranetLogOffArgs)

            'TODO: Add code here

        End Sub
    End Class
End Namespace
Inheritance Hierarchy

System.Object
   Dynamicweb.Extensibility.NotificationArgs
      Dynamicweb.Notifications.Standard.User.OnBeforeExtranetLogOffArgs

Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

Reference

Standard.User.OnBeforeExtranetLogOffArgs Members
Dynamicweb.Notifications Namespace

Send Feedback