共用方式為


UseManagedPresentationBindingElementImporter.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,同時包含可以匯入的原則判斷提示,以及可以加入實作繫結項目的繫結項目的集合。

實作

適用於