次の方法で共有


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

適用対象