BoundedChannelOptions(Int32) 构造函数

定义

初始化选项。

public:
 BoundedChannelOptions(int capacity);
public BoundedChannelOptions(int capacity);
new System.Threading.Channels.BoundedChannelOptions : int -> System.Threading.Channels.BoundedChannelOptions
Public Sub New (capacity As Integer)

参数

capacity
Int32

绑定通道可以存储的最大项数。

例外

capacity 为负数。

适用于