StandardBindingImporter.IWsdlImportExtension.BeforeImport Method (ServiceDescriptionCollection, XmlSchemaSet, ICollection<XmlElement>)

 

Called prior to importing the metadata documents associated with the standard binding.

Namespace:   System.ServiceModel.Channels
Assembly:  System.ServiceModel (in System.ServiceModel.dll)

void IWsdlImportExtension.BeforeImport(
	ServiceDescriptionCollection wsdlDocuments,
	XmlSchemaSet xmlSchemas,
	ICollection<XmlElement> policy
)

Parameters

wsdlDocuments
Type: System.Web.Services.Description.ServiceDescriptionCollection

The ServiceDescriptionCollection that describes the services.

xmlSchemas
Type: System.Xml.Schema.XmlSchemaSet

The XmlSchemaSet that describes the wsdlDocuments.

policy
Type: System.Collections.Generic.ICollection<XmlElement>

The ICollection<T> of type XmlElement that contains the policy elements.

The BeforeImport methods of all registered IWsdlImportExtension objects is called before anything is imported from the supplied metadata. At this point, you can directly modify the metadata that is subsequently imported into standard binding objects.

.NET Framework
Available since 3.0
Return to top
Show: