Dynamicweb 8 Documentation
Standard.Application.StartArgs Class
Members  Example 

Provides information about the application
Syntax
'Declaration
 
Public Class Standard.Application.StartArgs 
   Inherits Dynamicweb.Extensibility.NotificationArgs
public class Standard.Application.StartArgs : Dynamicweb.Extensibility.NotificationArgs 
Remarks
Arguments passed to Dynamicweb.Notifications.Standard.Application.Start notification
Example
Overriding the application start notification in DynamicwebOverriding the application start notification in Dynamicweb
using Dynamicweb;

namespace Dynamicweb.Examples.CSharp.Notifications.Standard
{
    [Dynamicweb.Extensibility.Subscribe(Dynamicweb.Notifications.Standard.Application.Start)]
    public class ApplicationStartObserver : Dynamicweb.Extensibility.NotificationSubscriber
    {
        public override void OnNotify(string notification, Dynamicweb.Extensibility.NotificationArgs args)
        {
            if (args == null)
                return;

            if (!(args is Dynamicweb.Notifications.Standard.Application.StartArgs))
                return;

            Dynamicweb.Notifications.Standard.Application.StartArgs item = (Dynamicweb.Notifications.Standard.Application.StartArgs)args;

            //TODO: Add code here

        }
    }
}
Namespace Notifications.Standard
    <Extensibility.Subscribe(Global.Dynamicweb.Notifications.Standard.Application.Start)> _
    Public Class ApplicationStartObserver
        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

            If Not (TypeOf args Is Global.Dynamicweb.Notifications.Standard.Application.StartArgs) Then
                Return
            End If

            Dim item As Global.Dynamicweb.Notifications.Standard.Application.StartArgs = DirectCast(args, Global.Dynamicweb.Notifications.Standard.Application.StartArgs)

            'TODO: Add code here

        End Sub
    End Class
End Namespace
Inheritance Hierarchy

System.Object
   Dynamicweb.Extensibility.NotificationArgs
      Dynamicweb.Notifications.Standard.Application.StartArgs

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.Application.StartArgs Members
Dynamicweb.Notifications Namespace

Send Feedback