Sdílet prostřednictvím


StandardEndpointCollectionElement<TStandardEndpoint,TEndpointConfiguration>.TryAdd Metoda

Definice

Pokusí se přidat element koncového bodu do kolekce elementů standardních koncových bodů.

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

Parametry

name
String

Identifikátor elementu, který má být přidán do kolekce.

endpoint
ServiceEndpoint

Element koncového bodu, který se má přidat

config
Configuration

Konfigurační soubor – není implementováno.

Návraty

Boolean

true Pokud byl prvek přidán do kolekce; v opačném případě false .

Platí pro