EndpointCollectionElement.TryAdd メソッド

定義

派生クラスとして実装された場合、指定されたエンドポイントを構成ファイル内のサービス エンドポイントのコレクションに追加します。

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

パラメーター

name
String

エンドポイントのコレクションを含むサービス エンドポイントの名前。

endpoint
ServiceEndpoint

コレクションに追加するサービス エンドポイント要素。

config
Configuration

サービス エンドポイントを受け取る構成ファイル。

戻り値

Boolean

エンドポイントが構成ファイル内のコレクションに追加される場合は true。それ以外の場合は false

適用対象