PrivacyNoticeBindingElementImporter.IPolicyImportExtension.ImportPolicy 方法

定义

导入隐私声明的自定义策略断言,并添加实现策略的绑定元素。

 virtual void System.ServiceModel.Description.IPolicyImportExtension.ImportPolicy(System::ServiceModel::Description::MetadataImporter ^ importer, System::ServiceModel::Description::PolicyConversionContext ^ policyContext) = System::ServiceModel::Description::IPolicyImportExtension::ImportPolicy;
void IPolicyImportExtension.ImportPolicy (System.ServiceModel.Description.MetadataImporter importer, System.ServiceModel.Description.PolicyConversionContext policyContext);
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, policyContext As PolicyConversionContext) Implements IPolicyImportExtension.ImportPolicy

参数

importer
MetadataImporter

可导入元数据信息的 MetadataImporter

policyContext
PolicyConversionContext

PolicyConversionContext 对象,其中既包含可以导入的策略断言,也包含可向其添加实现编码策略的自定义绑定元素的绑定元素集合。

实现

适用于