Language

StandardEndpointCollectionElement<TStandardEndpoint,TEndpointConfiguration>.TryAdd メソッド

定義

標準エンドポイント要素のコレクションにエンドポイント要素を追加しようとします。

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

パラメーター

name
String

コレクションに追加する要素の識別子。

endpoint
ServiceEndpoint

追加するエンドポイント要素。

config
Configuration

構成ファイル - 実装されていません。

返品

true 要素がコレクションに追加された場合。それ以外の場合は false。

適用対象