Distributor Constructor ()

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 ()

备注

已更新的文本:2005 年 12 月 5 日

已更新的示例代码:2005 年 12 月 5 日

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)

平台

开发平台

有关支持的平台列表,请参阅安装 SQL Server 2005 的硬件和软件要求。

目标平台

有关支持的平台列表,请参阅安装 SQL Server 2005 的硬件和软件要求。

请参阅

参考

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

其他资源

指定分发服务器设置
Distributor Element (ADF)