NotificationAutoEnlist Property

SqlCommand.NotificationAutoEnlist Property

Gets or sets a value indicating whether the application should automatically receive query notifications from a common SqlDependency object.

Namespace: System.Data.SqlClient
Assembly: System.Data (in

public bool NotificationAutoEnlist { get; set; }
/** @property */
public boolean get_NotificationAutoEnlist ()

/** @property */
public void set_NotificationAutoEnlist (boolean value)

public function get NotificationAutoEnlist () : boolean

public function set NotificationAutoEnlist (value : boolean)

Not applicable.

Property Value

true if the application should automatically receive query notifications; otherwise false. The default value is true.

This feature is used in ASP.NET applications to receive notifications for all commands executed in an ASP page against SQL Server. This enables ASP.NET to cache the page until the queries used to render the page would produce a different result. Automatic enlistment.

This property applies only to versions of SQL Server that support query notifications. For earlier versions, setting this property to true has no effect on the application.

Windows 98, Windows Server 2000 SP4, Windows Millennium Edition, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.

.NET Framework

Supported in: 3.0, 2.0

Community Additions

© 2016 Microsoft