PrivacyNoticeBindingElementImporter.IPolicyImportExtension.ImportPolicy 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
导入隐私声明的自定义策略断言,并添加实现策略的绑定元素。
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 对象,其中既包含可以导入的策略断言,也包含可向其添加实现编码策略的自定义绑定元素的绑定元素集合。