Freigeben über


Distributor Constructor ()

Initializes a new instance of the Distributor class.

Namespace: Microsoft.SqlServer.Management.Nmo
Assembly : Microsoft.SqlServer.Smo (in microsoft.sqlserver.smo.dll)

Syntax

'Declaration
Public Sub New
public Distributor ()
public:
Distributor ()
public Distributor ()
public function Distributor ()

Hinweise

Aktualisierter Text:05. Dezember 2005

Aktualisierter Beispielcode:05. Dezember 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.

Beispiel

The following examples show how to use this default constructor. Because the default constructor does not set property values, you must set the QuantumDuration and ThreadPoolSize properties. For any distributor, you must also set the SystemName property.

// Define a distributor and set properties.
Distributor dist1 = new Distributor();
dist1.Name = "Distributor";
dist1.Parent = myApplication;
dist1.ThreadPoolSize = 3;
dist1.QuantumDuration = new TimeSpan(0, 1, 0);
dist1.SystemName = notificationServicesHost;
myApplication.Distributors.Add(dist1);
' Define a distributor and set properties.
Dim dist1 As Distributor = New Distributor()
dist1.Name = "Distributor"
dist1.Parent = myApplication
dist1.ThreadPoolSize = 3
dist1.QuantumDuration = New TimeSpan(0, 1, 0)
dist1.SystemName = notificationServicesHost
myApplication.Distributors.Add(dist1)

Plattformen

Entwicklungsplattformen

Eine Liste der unterstützten Plattformen finden Sie unterHardware- und Softwareanforderungen für die Installation von SQL Server 2005.

Zielplattforme

Eine Liste der unterstützten Plattformen finden Sie unterHardware- und Softwareanforderungen für die Installation von SQL Server 2005.

Siehe auch

Verweis

Distributor Class
Distributor Members
Microsoft.SqlServer.Management.Nmo Namespace

Andere Ressourcen

Angeben von Verteilereinstellungen
Distributor Element (ADF)