Sprache

StandardEndpointCollectionElement<TStandardEndpoint,TEndpointConfiguration>.TryAdd Methode

Definition

Versucht, der Sammlung von Standardendpunktenelementen ein Endpunktelement hinzuzufügen.

protected public:
 override bool TryAdd(System::String ^ name, System::ServiceModel::Description::ServiceEndpoint ^ endpoint, System::Configuration::Configuration ^ config);
protected internal override bool TryAdd(string name, System.ServiceModel.Description.ServiceEndpoint endpoint, System.Configuration.Configuration config);
override this.TryAdd : string * System.ServiceModel.Description.ServiceEndpoint * System.Configuration.Configuration -> bool
Protected Friend Overrides Function TryAdd (name As String, endpoint As ServiceEndpoint, config As Configuration) As Boolean

Parameter

name
String

Der Bezeichner des Elements, das der Auflistung hinzugefügt werden soll.

endpoint
ServiceEndpoint

Das hinzuzufügende Endpunktelement.

config
Configuration

Die Konfigurationsdatei - nicht implementiert.

Gibt zurück

truewenn das Element der Auflistung hinzugefügt wurde; andernfalls . false

Gilt für: