ContextBindingElement.ExportPolicy Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Writes custom policy assertions into the context of the binding element.
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)
Parameters
- exporter
- MetadataExporter
The MetadataExporter that exports the metadata information.
- context
- PolicyConversionContext
A WsdlContractConversionContext object that provides mappings from exported WSDL elements to the contract description.
Implements
Exceptions
context
is null
or the policy assertion in the binding is null
.
Applies to
Співпраця з нами на GitHub
Джерело цього вмісту можна знайти на GitHub, де також можна створювати й переглядати запитання та запити на внесення змін. Докладні відомості наведено в нашому посібнику для співавторів.