MetadataSerializer.WriteWebServiceDescriptorElements 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.
Writes a web service descriptor element.
protected:
 virtual void WriteWebServiceDescriptorElements(System::Xml::XmlWriter ^ writer, System::IdentityModel::Metadata::WebServiceDescriptor ^ wsDescriptor);protected virtual void WriteWebServiceDescriptorElements(System.Xml.XmlWriter writer, System.IdentityModel.Metadata.WebServiceDescriptor wsDescriptor);abstract member WriteWebServiceDescriptorElements : System.Xml.XmlWriter * System.IdentityModel.Metadata.WebServiceDescriptor -> unit
override this.WriteWebServiceDescriptorElements : System.Xml.XmlWriter * System.IdentityModel.Metadata.WebServiceDescriptor -> unitProtected Overridable Sub WriteWebServiceDescriptorElements (writer As XmlWriter, wsDescriptor As WebServiceDescriptor)Parameters
- writer
- XmlWriter
The XML writer.
- wsDescriptor
- WebServiceDescriptor
The web service descriptor.
Exceptions
reader is null.
-or-
wsDescriptor is .null
-or-
The TargetScopes property of wsDescriptor is null.
-or-
The ClaimTypesOffered property of wsDescriptor is null.
-or-
The TokenTypesOffered property of wsDescriptor is null.
The parameter reader/roleDescriptor/roleDescriptor.TargetScopes/roleDescriptor.TargetScopes/roleDescriptor.TokenTypesOffered is null.