IEndpointBehavior.Validate(ServiceEndpoint) 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
實作以確認端點符合某些預期標準。
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 方法可用於確保所有端點都使用核准的企業綁定。