StandardEndpointCollectionElement<TStandardEndpoint, TEndpointConfiguration>.TryAdd Method (String, ServiceEndpoint, Configuration)

.NET Framework (current version)
 

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

Namespace:   System.ServiceModel.Configuration
Assembly:  System.ServiceModel (in System.ServiceModel.dll)

protected internal override bool TryAdd(
	string name,
	ServiceEndpoint endpoint,
	Configuration config
)

Parameters

name
Type: System.String

The identifier of the element to add to the collection.

endpoint
Type: System.ServiceModel.Description.ServiceEndpoint

The endpoint element to add.

config
Type: System.Configuration.Configuration

The configuration file – not implemented.

Return Value

Type: System.Boolean

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

.NET Framework
Available since 4.0
Return to top
Show: