Distributor.QuantumDuration Property
Gets or sets the distributor work item polling interval.
Spazio dei nomi: Microsoft.SqlServer.Management.Nmo
Assembly : Microsoft.SqlServer.Smo (in microsoft.sqlserver.smo.dll)
Sintassi
'Dichiarazione
Public Property QuantumDuration As TimeSpan
public TimeSpan QuantumDuration { get; set; }
public:
property TimeSpan QuantumDuration {
TimeSpan get ();
void set (TimeSpan value);
}
/** @property */
public TimeSpan get_QuantumDuration ()
/** @property */
public void set_QuantumDuration (TimeSpan value)
public function get QuantumDuration () : TimeSpan
public function set QuantumDuration (value : TimeSpan)
Valore proprietà
A TimeSpan value that specifies the distributor quantum duration.
Osservazioni
The default quantum duration is 1 minute.
The quantum duration specifies how frequently the distributor looks for new work items. For more information about how the distributor settings affect distributor operation, see Impostazioni del server di distribuzione.
Esempio
The following examples show how to create a distributor, define the distributor's properties, and then add it to an application:
// 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
Distributor Class
Distributor Members
Microsoft.SqlServer.Management.Nmo Namespace
Altre risorse
Impostazioni del server di distribuzione
QuantumDuration Element for Distributor (ADF)