StandardEndpointCollectionElement<TStandardEndpoint,TEndpointConfiguration>.TryAdd Metod

Definition

Försöker lägga till ett slutpunktselement i samlingen med standardslutpunktselement.

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

Parametrar

name
String

Identifieraren för elementet som ska läggas till i samlingen.

endpoint
ServiceEndpoint

Slutpunktselementet som ska läggas till.

config
Configuration

Konfigurationsfilen – inte implementerad.

Returer

trueom elementet har lagts till i samlingen. annars . false

Gäller för