SqlDependency.AddCommandDependency(SqlCommand) 메서드

정의

개체를 SqlCommandSqlDependency 인스턴스와 연결합니다.

public:
 void AddCommandDependency(System::Data::SqlClient::SqlCommand ^ command);
public void AddCommandDependency(System.Data.SqlClient.SqlCommand command);
member this.AddCommandDependency : System.Data.SqlClient.SqlCommand -> unit
Public Sub AddCommandDependency (command As SqlCommand)

매개 변수

command
SqlCommand

SqlCommand 알림에 유효한 문을 포함하는 개체입니다.

예외

매개 변수가 command null입니다.

개체의 SqlCommand 속성에 SqlNotificationRequestNotification 할당된 개체가 SqlNotificationRequest 이미 있으며 이 종속성과는 관련이 없습니다.

설명

쿼리 알림은 특정 요구 사항 목록을 충족하는 SELECT 문에 대해서만 지원됩니다. 자세한 내용은 SQL Server Service Broker 쿼리 알림 작업 참조하세요.

적용 대상

추가 정보