StandardEndpointCollectionElement<TStandardEndpoint,TEndpointConfiguration>.TryAdd Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
Spolupracujte s námi na GitHubu
Zdroj tohoto obsahu najdete na GitHubu, kde můžete také vytvářet a kontrolovat problémy a žádosti o přijetí změn. Další informace najdete v našem průvodci pro přispěvatele.