Edit

Share via


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, System::String ^ ns);
protected virtual void ImportSchema (System.ServiceModel.Description.WsdlExporter exporter, System.ServiceModel.Description.WsdlEndpointConversionContext context, string ns);
abstract member ImportSchema : System.ServiceModel.Description.WsdlExporter * System.ServiceModel.Description.WsdlEndpointConversionContext * string -> unit
override this.ImportSchema : System.ServiceModel.Description.WsdlExporter * System.ServiceModel.Description.WsdlEndpointConversionContext * string -> unit
Protected Overridable Sub ImportSchema (exporter As WsdlExporter, context As WsdlEndpointConversionContext, ns As String)

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