IEndpointBehavior.Validate(ServiceEndpoint) 方法

定义

实现以确认终结点符合一些预期条件。

public:
 void Validate(System::ServiceModel::Description::ServiceEndpoint ^ endpoint);
public void Validate(System.ServiceModel.Description.ServiceEndpoint endpoint);
abstract member Validate : System.ServiceModel.Description.ServiceEndpoint -> unit
Public Sub Validate (endpoint As ServiceEndpoint)

参数

endpoint
ServiceEndpoint

要验证的终结点。

注解

Validate实现用于检查结构以确认任意一组条件的方法。 不需要在此方法中 ApplyClientBehavior 执行任何自定义项或使用 ApplyDispatchBehavior 此方法。 如果终结点通过验证,则返回;否则,引发异常。

例如, Validate 该方法可用于确保所有终结点都使用已批准的公司绑定。

适用于