다음을 통해 공유


Generator.ThreadPoolSize Property

Gets or sets the number of threads that the generator can use to concurrently process rules.

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

구문

‘선언
Public Property ThreadPoolSize As Integer
public int ThreadPoolSize { get; set; }
public:
property int ThreadPoolSize {
    int get ();
    void set (int value);
}
/** @property */
public int get_ThreadPoolSize ()

/** @property */
public void set_ThreadPoolSize (int value)
public function get ThreadPoolSize () : int

public function set ThreadPoolSize (value : int)

속성 값

An Int32 object that specifies the maximum number of generator threads.

주의

The thread pool size determines the amount of work that the generator can perform in parallel, and affects the overall speed of the Notification Services system.

The generator thread pool size cannot be customized in Notification Services Standard Edition.

The number of threads allocated to the generator thread pool cannot exceed 25 threads per processor.

When the thread pool size is 0 (zero), Notification Services uses the maximum thread pool size reported by System.Threading.ThreadPool.GetMaxThreads(System.Int32,System.Int32).

The following examples show how to define a generator and add it to an application:

// Define generator for application
Generator generator = new Generator(myApplication, "Generator");
generator.SystemName = notificationServicesHost;
generator.ThreadPoolSize = 0;
myApplication.Generator = generator;
' Define generator for application
Dim generator As Generator = New Generator( _
    myApplication, "Generator")
generator.SystemName = notificationServicesHost
generator.ThreadPoolSize = 0
myApplication.Generator = generator

스레드 보안

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 설치를 위한 하드웨어 및 소프트웨어 요구 사항을 참조하십시오.

참고 항목

참조

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

관련 자료

생성자 설정 지정
ThreadPoolSize Element for Generator (ADF)