Remarque
L’accès à cette page nécessite une autorisation. Vous pouvez essayer de vous connecter ou de modifier des répertoires.
L’accès à cette page nécessite une autorisation. Vous pouvez essayer de modifier des répertoires.
Initializes a new instance of the EventClass class with an Application and a name.
Espace de noms: Microsoft.SqlServer.Management.Nmo
Assembly: Microsoft.SqlServer.Smo (in microsoft.sqlserver.smo.dll)
Syntaxe
'Déclaration
Public Sub New ( _
application As Application, _
name As String _
)
public EventClass (
Application application,
string name
)
public:
EventClass (
Application^ application,
String^ name
)
public EventClass (
Application application,
String name
)
public function EventClass (
application : Application,
name : String
)
Paramètres
- application
The Application for the event class. This parameter sets the Parent property.
name
The String of up to 255 characters that specifies the name of the event class.You cannot rename an event class. Instead, you must remove the event class and then add a new event class with the new name.
Notes
The name of an event class must conform to Microsoft SQL Server identifier naming conventions. It also must be unique within the application. For more information about SQL Server identifier naming conventions, see Identificateurs.
Exemple
The following examples show how to use this event class constructor:
EventClass flightEvents =
new EventClass(myApplication, "FlightEvents");
Dim flightEvents As EventClass = _
New EventClass(myApplication, "FlightEvents")
Plateformes
Plateformes de développement
Pour obtenir la liste des plateformes prises en charge, consultez Configuration matérielle et logicielle requise pour l'installation de SQL Server 2005.
Plateformes cibles
Pour obtenir la liste des plateformes prises en charge, consultez Configuration matérielle et logicielle requise pour l'installation de SQL Server 2005.
Voir aussi
Référence
EventClass Class
EventClass Members
Microsoft.SqlServer.Management.Nmo Namespace
Autres ressources
Définition des classe d'événements
EventClass Element (ADF)
Application Element (ADF)
EventClassName Element for EventClass (ADF)