WsdlExporter.ExportContract Method (ContractDescription)

 

Exports metadata that describes only the contract information from the specified contract description.

Namespace:   System.ServiceModel.Description
Assembly:  System.ServiceModel (in System.ServiceModel.dll)

public override void ExportContract(
	ContractDescription contract
)

Parameters

contract
Type: System.ServiceModel.Description.ContractDescription

The ContractDescription to generate metadata from.

Exception Condition
InvalidOperationException

The exporter encountered an error.

ArgumentNullException

The contract is null.

Use the ExportContract method to export metadata from only one contract.

The following code example demonstrates how to call ExportContract to export only contract information.

WsdlExporter exporter = new WsdlExporter();

.NET Framework
Available since 3.0
Return to top
Show: