SecurityTokenHandlerCollection.CanReadToken Método

Definição

Retorna um valor que indica se um token especificado pode ser lido por um dos manipuladores na coleção.Returns a value that indicates whether a specified token can be read by one of the handlers in the collection.

Sobrecargas

CanReadToken(String)

Retorna um valor que indica se a representação da cadeia de caracteres especificada de um token pode ser lida por um dos manipuladores nesta coleção.Returns a value that indicates whether the specified string representation of a token can be read by one of the handlers in this collection.

CanReadToken(XmlReader)

Retorna um valor que indica se o token especificado pode ser lido por um dos manipuladores nesta coleção.Returns a value that indicates whether the specified token can be read by one of the handlers in this collection.

CanReadToken(String)

Retorna um valor que indica se a representação da cadeia de caracteres especificada de um token pode ser lida por um dos manipuladores nesta coleção.Returns a value that indicates whether the specified string representation of a token can be read by one of the handlers in this collection.

public:
 bool CanReadToken(System::String ^ tokenString);
public bool CanReadToken (string tokenString);
member this.CanReadToken : string -> bool
Public Function CanReadToken (tokenString As String) As Boolean

Parâmetros

tokenString
String

O token representado como uma cadeia de caracteres.The token represented as a string.

Retornos

Boolean

true se a coleção contém um manipulador de token que pode ler o token especificado; caso contrário, false.true if the collection contains a token handler that can read the specified token; otherwise false.

Exceções

tokenString é null ou é uma cadeia de caracteres vazia.tokenString is null or an empty string.

Comentários

O método invoca o SecurityTokenHandler.CanReadToken(String) método nos manipuladores de token ( SecurityTokenHandler ) na coleção para determinar se o token pode ser lido.The method invokes the SecurityTokenHandler.CanReadToken(String) method on the token handlers (SecurityTokenHandler) in the collection to determine whether the token can be read.

Aplica-se a

CanReadToken(XmlReader)

Retorna um valor que indica se o token especificado pode ser lido por um dos manipuladores nesta coleção.Returns a value that indicates whether the specified token can be read by one of the handlers in this collection.

public:
 bool CanReadToken(System::Xml::XmlReader ^ reader);
public bool CanReadToken (System.Xml.XmlReader reader);
member this.CanReadToken : System.Xml.XmlReader -> bool
Public Function CanReadToken (reader As XmlReader) As Boolean

Parâmetros

reader
XmlReader

Um leitor de XML posicionado no elemento inicial.An XML reader positioned at the start element. O leitor não deve ser avançado.The reader should not be advanced.

Retornos

Boolean

true se o token puder ser lido; caso contrário, false.true if the token can be read; otherwise false.

Aplica-se a