共用方式為


ContextBindingElement.ExportPolicy 方法

定義

將自訂原則判斷提示寫入繫結項目的內容。

public:
 virtual void ExportPolicy(System::ServiceModel::Description::MetadataExporter ^ exporter, System::ServiceModel::Description::PolicyConversionContext ^ context);
public virtual void ExportPolicy (System.ServiceModel.Description.MetadataExporter exporter, System.ServiceModel.Description.PolicyConversionContext context);
abstract member ExportPolicy : System.ServiceModel.Description.MetadataExporter * System.ServiceModel.Description.PolicyConversionContext -> unit
override this.ExportPolicy : System.ServiceModel.Description.MetadataExporter * System.ServiceModel.Description.PolicyConversionContext -> unit
Public Overridable Sub ExportPolicy (exporter As MetadataExporter, context As PolicyConversionContext)

參數

exporter
MetadataExporter

用來匯出中繼資料資訊的 MetadataExporter

context
PolicyConversionContext

WsdlContractConversionContext 物件,提供從匯出的 WSDL 項目到合約描述之間的對應。

實作

例外狀況

contextnull,或繫結中的原則判斷提示是 null

適用於