ContextBindingElement.ExportPolicy Method (MetadataExporter, PolicyConversionContext)

 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

Writes custom policy assertions into the context of the binding element.

Namespace:   System.ServiceModel.Channels
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
Return to top
Show: