語言

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 檢查結構的方法,以確認任何標準。 無需進行任何客製化ApplyClientBehaviorApplyDispatchBehavior或使用此方法。 若端點通過驗證,則返回;否則,就拋出例外。

例如,此 Validate 方法可用於確保所有端點都使用核准的企業綁定。

適用於