StandardEndpointCollectionElement<TStandardEndpoint,TEndpointConfiguration>.TryAdd Methode

Definitie

Probeert een eindpuntelement toe te voegen aan de verzameling standaardeindpuntenelementen.

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

Parameters

name
String

De id van het element dat moet worden toegevoegd aan de verzameling.

endpoint
ServiceEndpoint

Het eindpuntelement dat moet worden toegevoegd.

config
Configuration

Het configuratiebestand - niet geïmplementeerd.

Retouren

true als het element aan de verzameling is toegevoegd; anders, false.

Van toepassing op