Share via


ServicePointManagerElement.UseNagleAlgorithm 属性

定义

获取或设置一个布尔值,该值确定是否使用 Nagle 算法。

public:
 property bool UseNagleAlgorithm { bool get(); void set(bool value); };
[System.Configuration.ConfigurationProperty("useNagleAlgorithm", DefaultValue=true)]
public bool UseNagleAlgorithm { get; set; }
[<System.Configuration.ConfigurationProperty("useNagleAlgorithm", DefaultValue=true)>]
member this.UseNagleAlgorithm : bool with get, set
Public Property UseNagleAlgorithm As Boolean

属性值

如果使用 Nagle 算法,则为 true;否则为 false。 默认值为 true

属性

注解

Nagle 算法用于通过缓冲小数据包并将它们作为单个数据包传输来减少网络流量。 此过程也称为“nagling”:它被广泛使用,因为它减少了传输的数据包数并降低了每个数据包的开销。

适用于

另请参阅