संपादित करें

इसके माध्यम से साझा किया गया


EndpointCollectionElement.TryAdd Method

Definition

When implemented in a derived class, adds the specified endpoint to the collection of service endpoints in a configuration file.

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

Parameters

name
String

The name of the service endpoint that contains the endpoint collection.

endpoint
ServiceEndpoint

The service endpoint element to be added to the collection.

config
Configuration

The configuration file that receives the service endpoint.

Returns

true if the endpoint is added to the collection in the configuration file; otherwise, false.

Applies to