dotConnect for SQL Server Documentation
Devart.Data.SqlServer Namespace / SqlCommand Class / NotificationAutoEnlist Property

In This Topic
    NotificationAutoEnlist Property
    In This Topic
    Determines whether the application should automatically receive query notifications from a common SqlDependency object.
    Syntax
    'Declaration
     
    Public Property NotificationAutoEnlist As Boolean
    public bool NotificationAutoEnlist {get; set;}

    Property Value

    If true, the application should automatically receive query notifications from a common SqlDependency object; otherwise, false.
    Remarks

    This property is used in ASP.NET applications to receive notifications for all commands executed by an ASP.NET page. This enables ASP.NET to cache this page until the queries used to render the page would produce a different result.

    This property is supported for SQL Server 2005 or higher. For earlier versions, this property is ignored.

    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