NotificationClass Constructor (Application, String)
Initializes a new instance of the NotificationClass class with the parent Application and a name.
Spazio dei nomi: Microsoft.SqlServer.Management.Nmo
Assembly : Microsoft.SqlServer.Smo (in microsoft.sqlserver.smo.dll)
Sintassi
'Dichiarazione
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
)
Parametri
- 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.
Osservazioni
Testo aggiornato:5 dicembre 2005
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 Identificatori.
Esempio
The following examples show how to use this constructor:
NotificationClass flightNotifications =
new NotificationClass(myApplication, "FlightNotifications");
Dim flightNotifications As NotificationClass = _
New NotificationClass(myApplication, "FlightNotifications")
Piattaforme
Piattaforme di sviluppo
Per un elenco delle piattaforme supportate, vedere Requisiti hardware e software per l'Installazione di SQL Server 2005.
Piattaforme di destinazione
Per un elenco delle piattaforme supportate, vedere Requisiti hardware e software per l'Installazione di SQL Server 2005.
Vedere anche
Riferimento
NotificationClass Class
NotificationClass Members
Microsoft.SqlServer.Management.Nmo Namespace
Altre risorse
Definizione delle classi di notifica
NotificationClass Element (ADF)
NotificationClassName Element (ADF)
Application Element (ADF)