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
Collaborate with us on GitHub
The source for this content can be found on GitHub, where you can also create and review issues and pull requests. For more information, see our contributor guide.