Muokkaa

Jaa


StandardEndpointCollectionElement<TStandardEndpoint,TEndpointConfiguration>.TryAdd Method

Definition

Attempts to add an endpoint element to the collection of standard endpoints elements.

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

The identifier of the element to add to the collection.

endpoint
ServiceEndpoint

The endpoint element to add.

config
Configuration

The configuration file - not implemented.

Returns

true if the element was added to the collection; otherwise, false.

Applies to