Instance Constructor ()
Initializes a new instance of the Instance class.
Spazio dei nomi: Microsoft.SqlServer.Management.Nmo
Assembly : Microsoft.SqlServer.Smo (in microsoft.sqlserver.smo.dll)
Sintassi
'Dichiarazione
Public Sub New
public Instance ()
public:
Instance ()
public Instance ()
public function Instance ()
Osservazioni
Testo aggiornato:5 dicembre 2005
Codice di esempio aggiornato:5 dicembre 2005
If you use the default constructor, you must immediately set the Name property and then set the Parent property. You can then set other properties.
The default constructor does not set default property values. You must set the SchemaName and EncryptArguments settings.
Esempio
The following examples show how to use this default constructor:
// Create instance and set required properties.
Instance myInstance = new Instance();
myInstance.Name = instanceName;
myInstance.Parent = notificationServices;
myInstance.SchemaName = "dbo";
myInstance.EncryptArguments = false;
' Create instance and set required properties.
Dim myInstance As Instance = New Instance()
myInstance.Name = instanceName
myInstance.Parent = notificationServices
myInstance.SchemaName = "dbo"
myInstance.EncryptArguments = False
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
Instance Class
Instance Members
Microsoft.SqlServer.Management.Nmo Namespace
Altre risorse
Configurazione delle istanze di Notification Services
NotificationServicesInstance Element (ICF)