ServiceDiscoveryElement 클래스
정의
중요
일부 정보는 릴리스되기 전에 상당 부분 수정될 수 있는 시험판 제품과 관련이 있습니다. Microsoft는 여기에 제공된 정보에 대해 어떠한 명시적이거나 묵시적인 보증도 하지 않습니다.
서비스의 검색 기능을 제어하는 구성 요소를 나타냅니다.
public ref class ServiceDiscoveryElement sealed : System::ServiceModel::Configuration::BehaviorExtensionElement
public sealed class ServiceDiscoveryElement : System.ServiceModel.Configuration.BehaviorExtensionElement
type ServiceDiscoveryElement = class
inherit BehaviorExtensionElement
Public NotInheritable Class ServiceDiscoveryElement
Inherits BehaviorExtensionElement
- 상속
-
ServiceDiscoveryElement
- 상속
-
ServiceDiscoveryElement
설명
이 요소는 서비스의 동작 구성에 적용 되 면 모든 노출 된 엔드포인트을 검색할 수 있습니다 서비스. 다음 예제에서는 서비스를 검색 가능한 상태로 표시하는 방법을 보여 줍니다. EndpointDiscoveryElement를 사용하여 특정 엔드포인트의 검색 기능을 제어할 수 있습니다.
<configuration>
<system.serviceModel>
<services>
<service name="Microsoft.Samples.Discovery.CalculatorService"
behaviorConfiguration="calculatorServiceBehavior">
<endpoint address=""
binding="wsHttpBinding"
contract="Microsoft.Samples.Discovery.ICalculatorService"/>
</service>
</services>
<behaviors>
<serviceBehaviors>
<behavior name="calculatorServiceBehavior">
<serviceDiscovery />
</behavior>
</serviceBehaviors>
</system.serviceModel>
</configuration>
생성자
| ServiceDiscoveryElement() |
ServiceDiscoveryElement 클래스의 새 인스턴스를 만듭니다. |