EndpointDiscoveryElement クラス

定義

エンドポイントの検出機能を制御する構成要素。

public ref class EndpointDiscoveryElement sealed : System::ServiceModel::Configuration::BehaviorExtensionElement
public sealed class EndpointDiscoveryElement : System.ServiceModel.Configuration.BehaviorExtensionElement
type EndpointDiscoveryElement = class
    inherit BehaviorExtensionElement
Public NotInheritable Class EndpointDiscoveryElement
Inherits BehaviorExtensionElement
継承
継承

注釈

エンドポイントの動作構成に追加すると、 EndpointDiscoveryElement 要素を使用して、エンドポイントの検出機能を有効または無効にすることができます。 さらに、検出操作中にサービス エンドポイントをフィルター処理するために使用できるカスタム スコープ URI を指定できます。 また、標準の検出可能なメタデータと共に公開されるカスタム XML メタデータを指定することもできます。

Note

EndpointDiscoveryElementは、検出可能性のサービス レベル制御を提供するServiceDiscoveryElementに依存します。 つまり、EndpointDiscoveryElement要素が存在しない場合、ServiceDiscoveryElementとその設定は無視されます。

次の例は、 EndpointDiscoveryElement 要素を使用し、2 つのスコープ要素を追加する方法を示しています。

<configuration>  
    <system.serviceModel>  
      <services>  
        <service name="Microsoft.Samples.Discovery.CalculatorService"  
                 behaviorConfiguration="calculatorServiceBehavior">  
          <endpoint address=""  
                    binding="wsHttpBinding"               contract="Microsoft.Samples.Discovery.ICalculatorService"  
                    behaviorConfiguration="ep1Behavior" />  
        </service>  
      </services>  
      <behaviors>  
        <serviceBehaviors>  
          <behavior name="calculatorServiceBehavior">  
            <serviceDiscovery />  
          </behavior>  
        </serviceBehaviors>  
        <endpointBehaviors>  
          <behavior name="ep1Behavior">  
            <endpointDiscovery enabled="true">  
              <scopes>  
                <add scope="http://www.example.org/engineering/calculator"/>  
                <add scope="ldap:///ou=engineering,o=exampleorg,c=us"/>  
              </scopes>  
            </endpointDiscovery>  
          </behavior>            
        </endpointBehaviors>  
      </behaviors>  
          </system.serviceModel>  
</configuration>  

コンストラクター

名前 説明
EndpointDiscoveryElement()

EndpointDiscoveryElement クラスの新しいインスタンスを作成します。

プロパティ

名前 説明
BehaviorType

EndpointDiscoveryElementに関連付けられている動作の種類を取得します。

ConfigurationElementName

この構成要素の名前を取得します。

(継承元 ServiceModelExtensionElement)
ContractTypeNames

エンドポイントに関連付けられているコントラクト型名を取得します。

CurrentConfiguration

現在のConfiguration インスタンスが属している構成階層を表す最上位ConfigurationElement インスタンスへの参照を取得します。

(継承元 ConfigurationElement)
ElementInformation

ElementInformation オブジェクトのカスタマイズ不可能な情報と機能を含むConfigurationElement オブジェクトを取得します。

(継承元 ConfigurationElement)
ElementProperty

ConfigurationElementProperty オブジェクト自体を表すConfigurationElement オブジェクトを取得します。

(継承元 ConfigurationElement)
Enabled

このエンドポイントの検出可能性を示す値を取得または設定します。

EvaluationContext

ContextInformation オブジェクトの ConfigurationElement オブジェクトを取得します。

(継承元 ConfigurationElement)
Extensions

EndpointDiscoveryElementに関連付けられている拡張機能を取得します。

HasContext

CurrentConfiguration プロパティがnullされているかどうかを示す値を取得します。

(継承元 ConfigurationElement)
Item[ConfigurationProperty]

この構成要素のプロパティまたは属性を取得または設定します。

(継承元 ConfigurationElement)
Item[String]

この構成要素のプロパティ、属性、または子要素を取得または設定します。

(継承元 ConfigurationElement)
LockAllAttributesExcept

ロックされた属性のコレクションを取得します。

(継承元 ConfigurationElement)
LockAllElementsExcept

ロックされた要素のコレクションを取得します。

(継承元 ConfigurationElement)
LockAttributes

ロックされた属性のコレクションを取得します。

(継承元 ConfigurationElement)
LockElements

ロックされた要素のコレクションを取得します。

(継承元 ConfigurationElement)
LockItem

要素がロックされているかどうかを示す値を取得または設定します。

(継承元 ConfigurationElement)
Properties

プロパティのコレクションを取得します。

(継承元 ConfigurationElement)
Scopes

このエンドポイントのスコープのコレクションを取得します。

メソッド

名前 説明
CopyFrom(ServiceModelExtensionElement)

指定した構成要素の内容をこの構成要素にコピーします。

(継承元 ServiceModelExtensionElement)
CreateBehavior()

現在の構成設定に基づいて動作拡張機能を作成します。

(継承元 BehaviorExtensionElement)
DeserializeElement(XmlReader, Boolean)

構成ファイルから XML を読み取ります。

(継承元 ConfigurationElement)
Equals(Object)

現在の ConfigurationElement インスタンスを指定したオブジェクトと比較します。

(継承元 ConfigurationElement)
GetHashCode()

現在の ConfigurationElement インスタンスを表す一意の値を取得します。

(継承元 ConfigurationElement)
GetTransformedAssemblyString(String)

指定したアセンブリ名の変換されたバージョンを返します。

(継承元 ConfigurationElement)
GetTransformedTypeString(String)

指定した型名の変換されたバージョンを返します。

(継承元 ConfigurationElement)
GetType()

現在のインスタンスの Type を取得します。

(継承元 Object)
Init()

ConfigurationElement オブジェクトを初期状態に設定します。

(継承元 ConfigurationElement)
InitializeDefault()

ConfigurationElement オブジェクトの既定の値セットを初期化するために使用します。

(継承元 ConfigurationElement)
IsModified()

この構成要素が変更されたかどうかを示す値を取得します。

(継承元 ServiceModelExtensionElement)
IsReadOnly()

ConfigurationElement オブジェクトが読み取り専用かどうかを示す値を取得します。

(継承元 ConfigurationElement)
ListErrors(IList)

この ConfigurationElement オブジェクトおよびすべてのサブ要素の無効なプロパティ エラーを、渡されたリストに追加します。

(継承元 ConfigurationElement)
MemberwiseClone()

現在の Objectの簡易コピーを作成します。

(継承元 Object)
OnDeserializeUnrecognizedAttribute(String, String)

逆シリアル化中に不明な属性が検出されたかどうかを示す値を取得します。

(継承元 ConfigurationElement)
OnDeserializeUnrecognizedElement(String, XmlReader)

逆シリアル化中に不明な要素が検出されたかどうかを示す値を取得します。

(継承元 ConfigurationElement)
OnRequiredPropertyNotFound(String)

必要なプロパティが見つからない場合に例外をスローします。

(継承元 ConfigurationElement)
PostDeserialize()

逆シリアル化後に呼び出されます。

(継承元 ConfigurationElement)
PreSerialize(XmlWriter)

シリアル化の前に呼び出されます。

(継承元 ConfigurationElement)
Reset(ConfigurationElement)

ロックやプロパティ コレクションなど、この構成要素オブジェクトの内部状態をリセットします。

(継承元 ServiceModelExtensionElement)
ResetModified()

派生クラスで実装されたときに IsModified() メソッドの値を false にリセットします。

(継承元 ConfigurationElement)
SerializeElement(XmlWriter, Boolean)

この構成要素の内容を構成ファイルに書き込みます。

(継承元 ServiceModelExtensionElement)
SerializeToXmlElement(XmlWriter, String)

派生クラスで実装されるときに、この構成要素の外部タグを構成ファイルに書き込みます。

(継承元 ConfigurationElement)
SetPropertyValue(ConfigurationProperty, Object, Boolean)

プロパティを指定した値に設定します。

(継承元 ConfigurationElement)
SetPropertyValueIfNotDefaultValue<T>(String, T)

値が既定値でない場合は、構成要素のプロパティ値を設定します。

(継承元 ServiceModelConfigurationElement)
SetReadOnly()

IsReadOnly() オブジェクトとすべてのサブ要素のConfigurationElement プロパティを設定します。

(継承元 ConfigurationElement)
ToString()

現在のオブジェクトを表す文字列を返します。

(継承元 Object)
Unmerge(ConfigurationElement, ConfigurationElement, ConfigurationSaveMode)

ConfigurationElement オブジェクトを変更して、保存すべきでないすべての値を削除します。

(継承元 ConfigurationElement)

適用対象