Partager via


Méthode WSFederationMessage.CreateFromNameValueCollection

Creates a Federation from a NameValueCollection of parameters.

Espace de noms: Microsoft.IdentityModel.Protocols.WSFederation
Assembly : Microsoft.IdentityModel (dans microsoft.identitymodel.dll)

Utilisation

    Dim baseUrl As Uri
Dim collection As NameValueCollection
Dim returnValue As WSFederationMessage

returnValue = WSFederationMessage.CreateFromNameValueCollection(baseUrl, collection)

Syntaxe

'Déclaration
Public Shared Function CreateFromNameValueCollection ( _
    baseUrl As Uri, _
    collection As NameValueCollection _
) As WSFederationMessage
public static WSFederationMessage CreateFromNameValueCollection (
    Uri baseUrl,
    NameValueCollection collection
)
public:
static WSFederationMessage^ CreateFromNameValueCollection (
    Uri^ baseUrl, 
    NameValueCollection^ collection
)
public static WSFederationMessage CreateFromNameValueCollection (
    Uri baseUrl, 
    NameValueCollection collection
)
public static function CreateFromNameValueCollection (
    baseUrl : Uri, 
    collection : NameValueCollection
) : WSFederationMessage

Paramètres

  • baseUrl
    BaseUrl to which the message is intended.
  • collection
    NameValueCollection of the parmaters.

Valeur de retour

Instance of WSFederation message of null if a message cannot be constructed.

Exceptions

Type d'exception Condition
ArgumentException

This method can throw an ArgumentExcpetion for the following cases 1. A SignIn Response message has both the wresult and wresultptr parameter. 2. Action parameter is not recognized.

Cohérence de thread

Tous les membres statiques publics (partagés dans Visual Basic) de ce type sont thread-safe.Il n'est pas garanti que les membres d'instance soient thread-safe.

Plateformes

Plateformes de développement

Windows Server 2003, Windows Vista

Target Platforms

Windows Server 2008, Windows Vista, Not tested on Windows XP

Voir aussi

Référence

Classe WSFederationMessage
Membres WSFederationMessage
Espace de noms Microsoft.IdentityModel.Protocols.WSFederation