MetadataSerializer.ReadWebServiceDescriptorElement Method

Definition

Reads web service descriptor elements.

public:
 virtual bool ReadWebServiceDescriptorElement(System::Xml::XmlReader ^ reader, System::IdentityModel::Metadata::WebServiceDescriptor ^ roleDescriptor);
public virtual bool ReadWebServiceDescriptorElement (System.Xml.XmlReader reader, System.IdentityModel.Metadata.WebServiceDescriptor roleDescriptor);
abstract member ReadWebServiceDescriptorElement : System.Xml.XmlReader * System.IdentityModel.Metadata.WebServiceDescriptor -> bool
override this.ReadWebServiceDescriptorElement : System.Xml.XmlReader * System.IdentityModel.Metadata.WebServiceDescriptor -> bool
Public Overridable Function ReadWebServiceDescriptorElement (reader As XmlReader, roleDescriptor As WebServiceDescriptor) As Boolean

Parameters

reader
XmlReader

The XML reader.

roleDescriptor
WebServiceDescriptor

The web service descriptor.

Returns

true if an element is read; otherwise, false.

Exceptions

reader is null.

-or-

roleDescriptor is .null

-or-

The TargetScopes property of roleDescriptor is null.

-or-

The ClaimTypesOffered property of roleDescriptor is null.

-or-

The TokenTypesOffered property of roleDescriptor is null.

The parameter reader/roleDescriptor/roleDescriptor.TargetScopes/roleDescriptor.TargetScopes/roleDescriptor.TokenTypesOffered is null.

Applies to