Creates a Federation from a NameValueCollection of parameters.
命名空间: Microsoft.IdentityModel.Protocols.WSFederation
程序集: Microsoft.IdentityModel(microsoft.identitymodel.dll 中)
用法
Dim baseUrl As Uri Dim collection As NameValueCollection Dim returnValue As WSFederationMessage returnValue = WSFederationMessage.CreateFromNameValueCollection(baseUrl, collection)
语法
声明
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
参数
- baseUrl
BaseUrl to which the message is intended.
- collection
NameValueCollection of the parmaters.
返回值
Instance of WSFederation message of null if a message cannot be constructed.
异常
| 异常类型 | 条件 |
|---|---|
| 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. |
线程安全
此类型的任何公共静态(在 Visual Basic 中为 Shared)成员都是线程安全的。但不能保证任何实例成员是线程安全的。
平台
开发平台
Windows Server 2003, Windows Vista
Target Platforms
Windows Server 2008, Windows Vista, Not tested on Windows XP
请参见
参考
WSFederationMessage 类
WSFederationMessage 成员
Microsoft.IdentityModel.Protocols.WSFederation 命名空间