WsdlExporter.ExportContract(ContractDescription) Metod

Definition

Exporterar metadata som endast beskriver kontraktsinformationen från den angivna kontraktsbeskrivningen.

public:
 override void ExportContract(System::ServiceModel::Description::ContractDescription ^ contract);
public override void ExportContract(System.ServiceModel.Description.ContractDescription contract);
override this.ExportContract : System.ServiceModel.Description.ContractDescription -> unit
Public Overrides Sub ExportContract (contract As ContractDescription)

Parametrar

contract
ContractDescription

Att ContractDescription generera metadata från.

Undantag

Exportören påträffade ett fel.

Kontraktet är null.

Exempel

Följande kodexempel visar hur du anropar ExportContract för att endast exportera kontraktsinformation.

WsdlExporter exporter = new WsdlExporter();
Dim exporter As New WsdlExporter()

Kommentarer

ExportContract Använd metoden för att exportera metadata från endast ett kontrakt.

Gäller för