WSTrustServiceContract.ImportSchema Method

Definition

Imports all of the required schemas if not already present in the WSDL.

protected virtual void ImportSchema (System.ServiceModel.Description.WsdlExporter exporter, System.ServiceModel.Description.WsdlEndpointConversionContext context, string ns);

Parameters

exporter
WsdlExporter

The WsdlExporter that exports the contract information.

context
WsdlEndpointConversionContext

Provides mappings from exported WSDL elements to the endpoint description.

ns
String

The current WS-Trust namespace for which the schemas are imported.

Exceptions

exporter is null.

-or-

context is null.

ns is null or an empty string.

The namespace specified in ns is not a recognized WS-Trust namespace.

Remarks

The default implementation imports the following schemas: WS-Trust Feb 2005 and WS-Trust 1.3. You can override this method in derived classes to import other schemas.

Applies to

Produkt Versioner
.NET Framework 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1