SubscriptionClass Constructor ()
Parameterless constructor that creates a new instance of the SubscriptionClass class.
Espace de noms: Microsoft.SqlServer.Management.Nmo
Assembly: Microsoft.SqlServer.Smo (in microsoft.sqlserver.smo.dll)
Syntaxe
'Déclaration
Public Sub New
public SubscriptionClass ()
public:
SubscriptionClass ()
public SubscriptionClass ()
public function SubscriptionClass ()
Notes
Texte mis à jour :5 décembre 2005
Exemple de code mis à jour :5 décembre 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, such as the required FileGroup property.
Exemple
The following examples show how to use this default constructor to create a subscription class and add it to an application:
// Create a subscription class and set required properties.
SubscriptionClass flightSubscriptions = new SubscriptionClass();
flightSubscriptions.Name = "FlightSubscriptions";
flightSubscriptions.Parent = myApplication;
flightSubscriptions.FileGroup = "PRIMARY";
' Create a subscription class and set required properties.
Dim flightSubscriptions As SubscriptionClass = New SubscriptionClass()
flightSubscriptions.Name = "FlightSubscriptions"
flightSubscriptions.Parent = myApplication
flightSubscriptions.FileGroup = "PRIMARY"
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
SubscriptionClass Class
SubscriptionClass Members
Microsoft.SqlServer.Management.Nmo Namespace