Editare

Partajați prin


WSFederationSerializer Constructors

Definition

Initializes a new instance of the WSFederationSerializer class.

Overloads

WSFederationSerializer()

Initializes a new instance of the WSFederationSerializer class.

WSFederationSerializer(XmlDictionaryReader)

Initializes a new instance of the WSFederationSerializer class based on the namespace of the response XML.

WSFederationSerializer(WSTrustRequestSerializer, WSTrustResponseSerializer)

Initializes a new instance of the WSFederationSerializer class with the specified request and response serializers.

WSFederationSerializer()

Initializes a new instance of the WSFederationSerializer class.

public:
 WSFederationSerializer();
public WSFederationSerializer ();
Public Sub New ()

Remarks

The new instance serializes WS-Federation messages into WS-Trust Feb 2005 protocol messages; an instance of the WSTrustFeb2005RequestSerializer class is used to serialize requests and an instance of the WSTrustFeb2005ResponseSerializer class is used to serialize responses.

Applies to

WSFederationSerializer(XmlDictionaryReader)

Initializes a new instance of the WSFederationSerializer class based on the namespace of the response XML.

public:
 WSFederationSerializer(System::Xml::XmlDictionaryReader ^ reader);
public WSFederationSerializer (System.Xml.XmlDictionaryReader reader);
new System.IdentityModel.Services.WSFederationSerializer : System.Xml.XmlDictionaryReader -> System.IdentityModel.Services.WSFederationSerializer
Public Sub New (reader As XmlDictionaryReader)

Parameters

reader
XmlDictionaryReader

An XmlDictionaryReader opened on the response XML.

Exceptions

reader is null.

Remarks

The request and response messages are serialized based on the namespace of the response XML (the appropriate WS-Trust serializers are used based on the namespace).

Applies to

WSFederationSerializer(WSTrustRequestSerializer, WSTrustResponseSerializer)

Initializes a new instance of the WSFederationSerializer class with the specified request and response serializers.

public:
 WSFederationSerializer(System::IdentityModel::Protocols::WSTrust::WSTrustRequestSerializer ^ requestSerializer, System::IdentityModel::Protocols::WSTrust::WSTrustResponseSerializer ^ responseSerializer);
public WSFederationSerializer (System.IdentityModel.Protocols.WSTrust.WSTrustRequestSerializer requestSerializer, System.IdentityModel.Protocols.WSTrust.WSTrustResponseSerializer responseSerializer);
new System.IdentityModel.Services.WSFederationSerializer : System.IdentityModel.Protocols.WSTrust.WSTrustRequestSerializer * System.IdentityModel.Protocols.WSTrust.WSTrustResponseSerializer -> System.IdentityModel.Services.WSFederationSerializer
Public Sub New (requestSerializer As WSTrustRequestSerializer, responseSerializer As WSTrustResponseSerializer)

Parameters

requestSerializer
WSTrustRequestSerializer

The WS-Trust Serializer to use to read the request (RST).

responseSerializer
WSTrustResponseSerializer

The WS-Trust Serializer to use to write the response (RSTR).

Exceptions

requestSerializer is null.

-or-

responseSerializer is null.

Applies to