EndpointCollectionElement::TryAdd Method (String^, ServiceEndpoint^, Configuration^)
.NET Framework (current version)
When implemented in a derived class, adds the specified endpoint to the collection of service endpoints in a configuration file.
Assembly: System.ServiceModel (in System.ServiceModel.dll)
public protected: virtual bool TryAdd( String^ name, ServiceEndpoint^ endpoint, Configuration^ config ) abstract
Parameters
- name
-
Type:
System::String^
The name of the service endpoint that contains the endpoint collection.
- endpoint
-
Type:
System.ServiceModel.Description::ServiceEndpoint^
The service endpoint element to be added to the collection.
- config
-
Type:
System.Configuration::Configuration^
The configuration file that receives the service endpoint.
Return Value
Type: System::Booleantrue if the endpoint is added to the collection in the configuration file; otherwise, false.
.NET Framework
Available since 4.0
Available since 4.0
Show: