共用方式為


ReliableSessionBindingElementImporter.IPolicyImportExtension.ImportPolicy 方法

定義

將 WS-Reliable 訊息原則判斷提示轉換為用戶端繫結中的可靠工作階段繫結項目。

 virtual void System.ServiceModel.Description.IPolicyImportExtension.ImportPolicy(System::ServiceModel::Description::MetadataImporter ^ importer, System::ServiceModel::Description::PolicyConversionContext ^ context) = System::ServiceModel::Description::IPolicyImportExtension::ImportPolicy;
void IPolicyImportExtension.ImportPolicy (System.ServiceModel.Description.MetadataImporter importer, System.ServiceModel.Description.PolicyConversionContext context);
abstract member System.ServiceModel.Description.IPolicyImportExtension.ImportPolicy : System.ServiceModel.Description.MetadataImporter * System.ServiceModel.Description.PolicyConversionContext -> unit
override this.System.ServiceModel.Description.IPolicyImportExtension.ImportPolicy : System.ServiceModel.Description.MetadataImporter * System.ServiceModel.Description.PolicyConversionContext -> unit
Sub ImportPolicy (importer As MetadataImporter, context As PolicyConversionContext) Implements IPolicyImportExtension.ImportPolicy

參數

importer
MetadataImporter

將 WSDL 中繼資料匯入繫結項目的 MetadataImporter

context
PolicyConversionContext

服務端點的 PolicyConversionContext,其中包含必須轉換為繫結項目的繫結原則判斷提示。

實作

例外狀況

contextimporternull

因為不符合 WS-Reliable 訊息原則,所以讀取的原則判斷提示無效。

備註

實作 ImportPolicy 方法。

適用於