Примечание.
Для доступа к этой странице требуется авторизация. Вы можете попробовать войти или изменить каталоги.
Для доступа к этой странице требуется авторизация. Вы можете попробовать изменить каталоги.
Initializes a new instance of the Distributor class.
Пространство имен: Microsoft.SqlServer.Management.Nmo
Сборка: Microsoft.SqlServer.Smo (in microsoft.sqlserver.smo.dll)
Синтаксис
'Декларация
Public Sub New
public Distributor ()
public:
Distributor ()
public Distributor ()
public function Distributor ()
Замечания
Изменения текста5 декабря 2005 г.
Изменения образцов кода5 декабря 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 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)
Платформы
Платформы разработки
Список поддерживаемых платформ см. в разделе Hardware and Software Requirements for Installing SQL Server 2005.
Целевые платформы
Список поддерживаемых платформ см. в разделе Hardware and Software Requirements for Installing SQL Server 2005.
См. также
Справочник
Distributor Class
Distributor Members
Microsoft.SqlServer.Management.Nmo Namespace
Другие ресурсы
Указание настроек распространителя
Distributor Element (ADF)