ConnectionManagementElement.MaxConnection Eigenschaft

Definition

Ruft die maximale Anzahl von Verbindungen ab, die mit einem Remotecomputer hergestellt werden können, oder legt diese fest.

public:
 property int MaxConnection { int get(); void set(int value); };
[System.Configuration.ConfigurationProperty("maxconnection", DefaultValue=1, IsRequired=true)]
public int MaxConnection { get; set; }
[System.Configuration.ConfigurationProperty("maxconnection", DefaultValue="6", Options=System.Configuration.ConfigurationPropertyOptions.IsRequired)]
public int MaxConnection { get; set; }
[<System.Configuration.ConfigurationProperty("maxconnection", DefaultValue=1, IsRequired=true)>]
member this.MaxConnection : int with get, set
[<System.Configuration.ConfigurationProperty("maxconnection", DefaultValue="6", Options=System.Configuration.ConfigurationPropertyOptions.IsRequired)>]
member this.MaxConnection : int with get, set
Public Property MaxConnection As Integer

Eigenschaftswert

Int32

Eine ganze Zahl, die die maximale Anzahl von Verbindungen angibt.

Attribute

Hinweise

Diese Eigenschaft gibt an, wie viele gleichzeitige Verbindungen zwischen dem lokalen Computer und dem Remotecomputer zulässig sind. Der Remotecomputer wird mithilfe der Address -Eigenschaft angegeben.

Die MaxConnection -Eigenschaft ist pro WebRequest.ConnectionGroupName . Wenn sich eine Anwendung nicht WebRequest.ConnectionGroupName von der Standardeinstellung unterscheidet, gilt die MaxConnection -Eigenschaft für die gesamte Anwendungsdomäne. Wenn nur eine einzelne Anwendungsdomäne in Ihrer Anwendung ausgeführt wird, ist die MaxConnection Eigenschafteneinstellung anwendungsweit.

Gilt für: