This documentation is archived and is not being maintained.

SqlCommand.NotificationAutoEnlist Property

Note: This property is new in the .NET Framework version 2.0.

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 system.data.dll)

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)

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 2000 SP4, Windows CE, Windows Millennium Edition, Windows Mobile for Pocket PC, Windows Mobile for Smartphone, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see System Requirements.

.NET Framework

Supported in: 2.0
Show: