ReliableSessionBindingElementImporter.IPolicyImportExtension.ImportPolicy 方法

定义

将 WS-Reliable Message 策略断言转换为客户端绑定中的可靠会话绑定元素。

 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

MetadataImporter,将 WSDL 元数据导入到绑定元素中。

context
PolicyConversionContext

服务终结点的 PolicyConversionContext,包含必须转换为绑定元素的绑定策略断言。

实现

例外

contextimporternull

读取的策略断言无效,因其与 WS-Reliable Messaging Policy 不符。

注解

实现 ImportPolicy 方法。

适用于