ReliableSessionBindingElementImporter.IPolicyImportExtension.ImportPolicy Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.