다음을 통해 공유


SqlNotificationRequest 생성자

정의

SqlNotificationRequest 클래스의 새 인스턴스를 만듭니다.

오버로드

SqlNotificationRequest()

기본값을 사용하여 SqlNotificationRequest 클래스의 새 인스턴스를 만듭니다.

SqlNotificationRequest(String, String, Int32)

특정 알림 요청을 식별하는 사용자 정의 문자열, 미리 정의된 SQL Server 2005 Service Broker 서비스 이름의 이름 및 초 단위 제한 시간을 사용하여 SqlNotificationRequest 클래스의 새 인스턴스를 만듭니다.

SqlNotificationRequest()

기본값을 사용하여 SqlNotificationRequest 클래스의 새 인스턴스를 만듭니다.

public:
 SqlNotificationRequest();
public SqlNotificationRequest ();
Public Sub New ()

설명

매개 변수가 없는 생성자를 사용하여 개체를 SqlNotificationRequest 만드는 경우 해당 instance 개체의 Notification 속성에 개체 SqlCommand 를 할당하기 전에 해당 UserDataOptions 속성을 초기화해야 합니다. 생성자에서 사용하는 기본값은 의 경우 NULL(Nothing Visual Basic의 경우) UserData이고, 의 빈 문자열 Options은 이고, 의 경우 0입니다 Timeout.

추가 정보

적용 대상

SqlNotificationRequest(String, String, Int32)

특정 알림 요청을 식별하는 사용자 정의 문자열, 미리 정의된 SQL Server 2005 Service Broker 서비스 이름의 이름 및 초 단위 제한 시간을 사용하여 SqlNotificationRequest 클래스의 새 인스턴스를 만듭니다.

public:
 SqlNotificationRequest(System::String ^ userData, System::String ^ options, int timeout);
public SqlNotificationRequest (string userData, string options, int timeout);
new System.Data.Sql.SqlNotificationRequest : string * string * int -> System.Data.Sql.SqlNotificationRequest
Public Sub New (userData As String, options As String, timeout As Integer)

매개 변수

userData
String

이 알림에 대한 애플리케이션별 식별자를 포함하는 문자열입니다. 이 문자열은 알림 인프라에서 사용되지 않지만 이 문자열을 사용하여 알림을 애플리케이션 상태와 연결할 수 있습니다. 이 매개 변수에서 나타내는 값은 Service Broker 큐 메시지에 포함됩니다.

options
String

알림 메시지가 게시되는 Service Broker 서비스 이름을 포함하는 문자열입니다. 이 문자열에는 서비스 이름 조회의 범위를 특정 데이터베이스로 제한하는 데이터베이스 이름이나 Service Broker 인스턴스 GUID가 포함되어야 합니다.

options 매개 변수의 형식에 대한 자세한 내용은 Options를 참조하십시오.

timeout
Int32

알림 메시지를 기다리는 시간(초)입니다.

예외

options 매개 변수의 값이 NULL인 경우

options 또는 userData 매개 변수가 uint16.MaxValue보다 길거나 timeout에 있는 값이 0보다 작습니다.

설명

이 생성자를 사용하면 새 SqlNotificationRequest instance 초기화하여 고유한 식별자, SQL Server 2005 Service Broker 서비스 이름 및 시간 제한 값을 제공할 수 있습니다.

추가 정보

적용 대상