NotificationClass Constructor (Application, String)
Initializes a new instance of the NotificationClass class with the parent Application and a name.
네임스페이스: Microsoft.SqlServer.Management.Nmo
어셈블리: Microsoft.SqlServer.Smo (in microsoft.sqlserver.smo.dll)
구문
‘선언
Public Sub New ( _
application As Application, _
name As String _
)
public NotificationClass (
Application application,
string name
)
public:
NotificationClass (
Application^ application,
String^ name
)
public NotificationClass (
Application application,
String name
)
public function NotificationClass (
application : Application,
name : String
)
매개 변수
- application
The parent Application for the notification class. This parameter sets the Parent property.
name
The String of between 1 and 255 characters that specifies the name of the notification class.You cannot change the name. To rename a notification class, you must remove the notification class and then add a new notification class that has the new name.
주의
업데이트된 텍스트:2005년 12월 5일
This constructor sets the following default values:
Property |
Default Value |
"PRIMARY" |
|
0 |
|
false |
|
false |
|
|
Notification Services uses the name value when creating tables and views. Therefore, the name of each notification class must conform to Microsoft SQL Server identifier naming conventions. The name also must be unique within the application. For more information about SQL Server identifier naming conventions, see 식별자.
예
The following examples show how to use this constructor:
NotificationClass flightNotifications =
new NotificationClass(myApplication, "FlightNotifications");
Dim flightNotifications As NotificationClass = _
New NotificationClass(myApplication, "FlightNotifications")
플랫폼
개발 플랫폼
지원되는 플랫폼 목록은 SQL Server 2005 설치를 위한 하드웨어 및 소프트웨어 요구 사항을 참조하십시오.
대상 플랫폼
지원되는 플랫폼 목록은 SQL Server 2005 설치를 위한 하드웨어 및 소프트웨어 요구 사항을 참조하십시오.
참고 항목
참조
NotificationClass Class
NotificationClass Members
Microsoft.SqlServer.Management.Nmo Namespace
관련 자료
알림 클래스 정의
NotificationClass Element (ADF)
NotificationClassName Element (ADF)
Application Element (ADF)