Redigera

Dela via


ReliableSessionBindingElementImporter.IPolicyImportExtension.ImportPolicy Method

Definition

Converts WS-Reliable Message policy assertions into the reliable session binding elements in a binding on the client.

 virtual void System.ServiceModel.Description.IPolicyImportExtension.ImportPolicy(System::ServiceModel::Description::MetadataImporter ^ importer, System::ServiceModel::Description::PolicyConversionContext ^ context) = System::ServiceModel::Description::IPolicyImportExtension::ImportPolicy;
void IPolicyImportExtension.ImportPolicy (System.ServiceModel.Description.MetadataImporter importer, System.ServiceModel.Description.PolicyConversionContext context);
abstract member System.ServiceModel.Description.IPolicyImportExtension.ImportPolicy : System.ServiceModel.Description.MetadataImporter * System.ServiceModel.Description.PolicyConversionContext -> unit
override this.System.ServiceModel.Description.IPolicyImportExtension.ImportPolicy : System.ServiceModel.Description.MetadataImporter * System.ServiceModel.Description.PolicyConversionContext -> unit
Sub ImportPolicy (importer As MetadataImporter, context As PolicyConversionContext) Implements IPolicyImportExtension.ImportPolicy

Parameters

importer
MetadataImporter

The MetadataImporter that imports the WSDL metadata into the binding element.

context
PolicyConversionContext

The PolicyConversionContext for the service endpoint that contains the binding policy assertions that must be converted into binding elements.

Implements

Exceptions

The context or importer is null.

The policy assertion being read is invalid because it does not comply with WS-Reliable Messaging Policy.

Remarks

Implements the ImportPolicy method.

Applies to