다음을 통해 공유


Distributor.QuantumDuration Property

Gets or sets the distributor work item polling interval.

네임스페이스: Microsoft.SqlServer.Management.Nmo
어셈블리: Microsoft.SqlServer.Smo (in microsoft.sqlserver.smo.dll)

구문

‘선언
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)

속성 값

A TimeSpan value that specifies the distributor quantum duration.

주의

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 배포자 설정 지정.

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)

스레드 보안

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.

플랫폼

개발 플랫폼

지원되는 플랫폼 목록은 SQL Server 2005 설치를 위한 하드웨어 및 소프트웨어 요구 사항을 참조하십시오.

대상 플랫폼

지원되는 플랫폼 목록은 SQL Server 2005 설치를 위한 하드웨어 및 소프트웨어 요구 사항을 참조하십시오.

참고 항목

참조

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

관련 자료

배포자 설정 지정
QuantumDuration Element for Distributor (ADF)