ConnectionConsumerAttribute.AllowsMultipleConnections 属性

定义

获取或设置一个值,该值指示连接点是否允许多个连接。Gets or sets a value that indicates whether the connection point allows multiple connections.

public:
 property bool AllowsMultipleConnections { bool get(); void set(bool value); };
public bool AllowsMultipleConnections { get; set; }
member this.AllowsMultipleConnections : bool with get, set
Public Property AllowsMultipleConnections As Boolean

属性值

如果连接点接受多个连接,则为 true;否则为 falsetrue if the connection point accepts multiple connections; otherwise, false.

注解

默认情况下, 使用者连接不接受多个连接, 因此, 此属性false设置为。By default, consumer connections do not accept multiple connections, so this property is set to false. 但是, 提供程序连接默认接受多个连接, 而对象上的ConnectionProviderAttribute此属性设置为。 trueProvider connections, however, do accept multiple connections by default, and this property on a ConnectionProviderAttribute object is set to true.

适用于

另请参阅