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 Instance class with a NotificationServices object 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 ( _
notificationServices As NotificationServices, _
name As String _
)
public Instance (
NotificationServices notificationServices,
string name
)
public:
Instance (
NotificationServices^ notificationServices,
String^ name
)
public Instance (
NotificationServices notificationServices,
String name
)
public function Instance (
notificationServices : NotificationServices,
name : String
)
Paramètres
- notificationServices
The NotificationServices for the Notification Services instance. This parameter sets the Parent property.
name
A String, between 1 and 64 characters in length, that specifies the name of the Notification Services instance. You use this instance name when administering the instance of Notification Services.You cannot change the instance name. You must drop the instance and create it again to change the name. If you attempt to change the name NMO will throw an exception.
Notes
Texte mis à jour :5 décembre 2005
Each Notification Services instance on a Moteur de base de données instance must have a unique name, which is not case-sensitive. For example, MyInstance and myinstance are not considered unique names.
Because this name is used for database objects, follow the SQL Server rules for regular identifiers. Do not use SQL Server reserved keywords or special characters, such as backslash (/), forward slash (\), left bracket ([), right bracket (]), double quotes ("), and single quote ('). For more information about SQL Server identifiers, see Identificateurs.
This constructor sets the following default property values.
Property |
Value |
false |
|
"dbo" |
Exemple
The following examples show how to use this constructor:
Instance myInstance = new Instance(
notificationServices, instanceName);
Dim myInstance As Instance = _
New Instance(notificationServices, instanceName)
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
Instance Class
Instance Members
Microsoft.SqlServer.Management.Nmo Namespace
DatabaseName
Autres ressources
Configuration des instances de Notification Services
NotificationServicesInstance Element (ICF)