Application.Distributors Property
Gets a DistributorCollection object, which contains the set of distributors used by the Notification Services application to distribute notifications to delivery channels.
Spazio dei nomi: Microsoft.SqlServer.Management.Nmo
Assembly : Microsoft.SqlServer.Smo (in microsoft.sqlserver.smo.dll)
Sintassi
'Dichiarazione
Public ReadOnly Property Distributors As DistributorCollection
public DistributorCollection Distributors { get; }
public:
property DistributorCollection^ Distributors {
DistributorCollection^ get ();
}
/** @property */
public DistributorCollection get_Distributors ()
public function get Distributors () : DistributorCollection
Valore proprietà
A DistributorCollection object.
Osservazioni
Distributors govern the formatting and distribution of notifications. Applications deployed on a single server can have one distributor. Applications scaled out across multiple servers can have one distributor per server.
Use the methods of the DistributorCollection class to add or remove Distributor objects.
Esempio
The following examples show how to define a distributor and add it to an application using the Distributors property:
// Define distributor for application
Distributor distributor =
new Distributor(myApplication, "Distributor");
distributor.SystemName = notificationServicesHost;
distributor.QuantumDuration = new TimeSpan(0, 0, 15);
distributor.ThreadPoolSize = 2;
myApplication.Distributors.Add(distributor);
' Define distributor for application
Dim distributor As Distributor = New Distributor( _
myApplication, "Distributor")
distributor.SystemName = notificationServicesHost
distributor.QuantumDuration = New TimeSpan(0, 0, 15)
distributor.ThreadPoolSize = 2
myApplication.Distributors.Add(distributor)
Thread Safety
Any public static (Shared in Microsoft Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
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
Application Class
Application Members
Microsoft.SqlServer.Management.Nmo Namespace
Altre risorse
Impostazioni del server di distribuzione
Distributors Element (ADF)