ProcessModelSection.MinIOThreads 属性

定义

获取或设置 CLR 线程池中每个 CPU 的最少 I/O 线程数。

public:
 property int MinIOThreads { int get(); void set(int value); };
[System.Configuration.ConfigurationProperty("minIoThreads", DefaultValue=1)]
[System.Configuration.IntegerValidator(MaxValue=2147483646, MinValue=1)]
public int MinIOThreads { get; set; }
[<System.Configuration.ConfigurationProperty("minIoThreads", DefaultValue=1)>]
[<System.Configuration.IntegerValidator(MaxValue=2147483646, MinValue=1)>]
member this.MinIOThreads : int with get, set
Public Property MinIOThreads As Integer

属性值

Int32

CLR 线程池中每个 CPU 的最少 I/O 线程数。

属性

示例

下面的代码示例演示如何访问 MinIOThreads 属性。


// Get the current MinIOThreads property value.
int minIOThreads = processModelSection.MinIOThreads;

// Set the MinIOThreads property to 1.
processModelSection.MinIOThreads = 1;
' Get the current MinIOThreads property value.
   Dim minIOThreads As Integer = _
   processModelSection.MinIOThreads

' Set the MinIOThreads property to 1.
processModelSection.MinIOThreads = 1

适用于