InformationCardSerializer.ReadCard 方法 (XmlReader, SecurityTokenResolver)

Reads an informationCard from a given XmlReader.

命名空间: Microsoft.IdentityModel.Protocols.WSIdentity
程序集: Microsoft.IdentityModel(microsoft.identitymodel.dll 中)

用法

    Dim instance As InformationCardSerializer
Dim reader As XmlReader
Dim signingTokenResolver As SecurityTokenResolver
Dim returnValue As InformationCard

returnValue = instance.ReadCard(reader, signingTokenResolver)

语法

声明
Public Function ReadCard ( _
    reader As XmlReader, _
    signingTokenResolver As SecurityTokenResolver _
) As InformationCard
public InformationCard ReadCard (
    XmlReader reader,
    SecurityTokenResolver signingTokenResolver
)
public:
InformationCard^ ReadCard (
    XmlReader^ reader, 
    SecurityTokenResolver^ signingTokenResolver
)
public InformationCard ReadCard (
    XmlReader reader, 
    SecurityTokenResolver signingTokenResolver
)
public function ReadCard (
    reader : XmlReader, 
    signingTokenResolver : SecurityTokenResolver
) : InformationCard

参数

  • reader
    XmlReader from which the InformationCard is read.
  • signingTokenResolver
    Token Resolver used to resolver the signing token.

返回值

An InformationCard instance.

异常

异常类型 条件
ArgumentNullException

The input parameter is null.

InformationCardException

The XmlReader is not well formed.

线程安全

此类型的任何公共静态(在 Visual Basic 中为 Shared)成员都是线程安全的。但不能保证任何实例成员是线程安全的。

平台

开发平台

Windows Server 2003, Windows Vista

Target Platforms

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

请参见

参考

InformationCardSerializer 类
InformationCardSerializer 成员
Microsoft.IdentityModel.Protocols.WSIdentity 命名空间