The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.
ContextBindingElement::ExportPolicy Method (MetadataExporter^, PolicyConversionContext^)
.NET Framework (current version)
Writes custom policy assertions into the context of the binding element.
Assembly: System.ServiceModel (in System.ServiceModel.dll)
public: virtual void ExportPolicy( MetadataExporter^ exporter, PolicyConversionContext^ context )
Parameters
- exporter
-
Type:
System.ServiceModel.Description::MetadataExporter^
The MetadataExporter that exports the metadata information.
- context
-
Type:
System.ServiceModel.Description::PolicyConversionContext^
A WsdlContractConversionContext object that provides mappings from exported WSDL elements to the contract description.
| Exception | Condition |
|---|---|
| ArgumentNullException | context is null or the policy assertion in the binding is null. |
.NET Framework
Available since 3.5
Available since 3.5
Show: